#tag
tag @a[tag=turnpaused] add turn
tag @a[tag=turnpaused] remove turnpaused

tellraw @a {"rawtext": [{"text": "§dReshuffling done!"}]}

scoreboard players reset @e[tag=dummy] reshuffle

execute @e[tag=dummy,scores={reshuffle_pause=1}] ~ ~ ~ function button_interact/keep2
execute @e[tag=dummy,scores={reshuffle_pause=2}] ~ ~ ~ function nextturn/nextperson
execute @e[tag=dummy,scores={reshuffle_pause=3}] ~ ~ ~ function nextturn/nextperson_skip
execute @e[tag=dummy,scores={reshuffle_pause=4}] ~ ~ ~ function nextturn/nextperson_drawclassic
execute @e[tag=dummy,scores={reshuffle_pause=5}] ~ ~ ~ function nextturn/nextperson_drawstacking
execute @e[tag=dummy,scores={reshuffle_pause=6}] ~ ~ ~ scoreboard players set @a[scores={player_id=1}] hastodrawdelay 0
execute @e[tag=dummy,scores={reshuffle_pause=7}] ~ ~ ~ scoreboard players set @a[scores={player_id=2}] hastodrawdelay 0
execute @e[tag=dummy,scores={reshuffle_pause=8}] ~ ~ ~ scoreboard players set @a[scores={player_id=3}] hastodrawdelay 0
execute @e[tag=dummy,scores={reshuffle_pause=9}] ~ ~ ~ scoreboard players set @a[scores={player_id=4}] hastodrawdelay 0

scoreboard players set @e[tag=dummy] reshuffle_pause 0