Solved a bug in ComputerAI that was crashing the game