tellraw @s {"text":"There is currently a game in progress. You have joined the team with the least players!","color":"gray"}
execute store result score blue_bigger temp if score .blue temp > .red temp

execute if score blue_bigger temp matches 1 run function pctf:logic/lobby/late_join/join_red with storage pctf:map input
execute if score blue_bigger temp matches 0 run function pctf:logic/lobby/late_join/join_blue with storage pctf:map input