#lose
execute if entity @a[scores={health=..0}] run tag @a add game_lost
execute if entity @a[tag=game_lost] run return run function main:game/condition/loss/start

#win
# execute if score .rest arena matches ..0 if score .stage arena matches 5.. run tag @a add game_won
execute if score .rest arena matches ..0 if entity @a[tag=game_won] run function main:game/condition/win/start