tag @s add end_game
tag @s remove playing
tag @s remove dead

tag @n[tag=map_lobby,tag=in_game] remove in_game
gamemode spectator @s
scoreboard players set @s countdown 440
scoreboard players set @n[tag=map_center] countdown 440
tag @s remove in_game
tag @s remove has_flag
tag @s remove has_light_purple_flag
tag @s remove has_aqua_flag
tag @s remove has_yellow_flag
tag @s remove has_green_flag

execute if score .lava_time temp matches 1.. run scoreboard players set .lava_time temp 2
execute if score .wind_time temp matches 1.. run scoreboard players set .wind_time temp 2

scoreboard players reset @s on_map