tag @e[tag=Board] remove Alive
tag @e[tag=Board] remove Red
execute as @e[tag=GenerationStart,limit=200,sort=random] run tag @s add Alive
execute as @e[tag=Alive,limit=100,sort=random] run tag @s add Red
execute as @e[tag=GenerationStart,tag=Alive,tag=!Red] run function main:mirrorred
execute as @e[tag=GenerationStart,tag=Alive,tag=Red] run function main:mirrorblue
function main:updateboard