function main:generateboard
execute if score TOM Game = 0 Integer run scoreboard players set P Game 0
execute if score TOM Game = 1 Integer run scoreboard players set P Game 1
execute if score TOM Game = 2 Integer run scoreboard players set P Game 0
execute if score TOM Game = 3 Integer run scoreboard players set P Game 1
execute if score TOM Game = 4 Integer run scoreboard players set P Game 0
execute if score TOM Game = 5 Integer run scoreboard players set P Game 1
scoreboard players set InGame Game 1
scoreboard players set SelectionAllowed Game 1
scoreboard players set RenderTimer Timer 6
scoreboard players add Current GameID 1
scoreboard players operation @a GameID = Current GameID
execute if score TOM Game = 0 Integer run scoreboard players set TurnOrder Game 0
execute if score TOM Game = 1 Integer run scoreboard players set TurnOrder Game 1
scoreboard players set ShouldRegenerate Game 1
tp @a 16.0 21 16.0 0 90