$execute as @a[tag=stopping_all_games] run function pctf:stop_game {map_id: $(x)}
execute if score #i temp <= .total_maps lobby run schedule function pctf:stop_all_games/init 1t replace
execute if score #i temp >= .total_maps lobby run function pctf:stop_all_games/remove_tag