Move minimax functions to self-executing function
Add cheat function to game