#reset scores
scoreboard players set @e[tag=dummy] ingame 0
scoreboard players set @e[tag=dummy] startanimation 0
scoreboard players set @e[tag=dummy] turn 0
scoreboard players set @e[tag=dummy] reshuffle 0
scoreboard players reset * stopbutton
scoreboard players reset * player_id
scoreboard players reset * choosecolordelay
scoreboard players reset * stopdelay
scoreboard players reset * game_id
scoreboard players reset * hastodraw
scoreboard players reset * hastodrawdelay
scoreboard players reset * spectating

scoreboard players reset @e[tag=dummy] stoperror_tick
scoreboard players reset @e[tag=dummy] stoperror_sec
scoreboard players reset @e[tag=dummy] stoperror_min
scoreboard players reset @e[tag=dummy] stoperror_extra

#kill cards
tp @e[type=cero:card,tag=!info] 0 -1000 0
kill @e[type=cero:card,tag=!info]



#remove tags
tag * remove turn
tag * remove drawing
tag * remove winner


#teleport to lobby
spreadplayers 91 -76 1 2 @a


#tp buttons
execute @e[tag=button] ~ ~ ~ tp @s ~ 24 ~



#event
event entity @e[tag=button] clicked_done


#blockinteract
execute @e[tag=blockinteract] ~ ~ ~ function blockinteract_kill