function main:loadstate
tag @s remove Alive
tag @s add Calc
tag @s add This
tag @s add AICalculated
function main:preview
function main:iteration
scoreboard objectives remove MinMaxScore2
scoreboard objectives add MinMaxScore2 dummy
function main:savestate2
execute as @e[tag=Alive,limit=5,sort=random] run function ai:getscore2
function ai:getmaxscore
tag @e remove Used
tag @s remove This