execute if entity @e[tag=Selected,tag=!Alive] run tag @e[tag=Selected,tag=!Alive] add Birth
execute if entity @e[tag=Selected,tag=Alive,tag=Red] run tag @e[tag=Selected,tag=Alive,tag=Red] add Kill
execute if entity @e[tag=Selected,tag=Alive,tag=!Red] run tag @e[tag=Selected,tag=Alive,tag=!Red] add Recolor
execute as @e[tag=Selected,tag=Birth] run tag @s add Alive
execute as @e[tag=Selected,tag=Birth] run tag @s remove Red
execute as @e[tag=Selected,tag=Birth] run tag @s remove Birth
execute as @e[tag=Selected,tag=Recolor] run tag @s add Red
execute as @e[tag=Selected,tag=Recolor] run tag @s remove Recolor
execute as @e[tag=Selected,tag=Kill] run tag @s remove Alive
execute as @e[tag=Selected,tag=Kill] run tag @s remove Kill
function main:updateboard