Fixed to not stop after 9 turns for a game larger than 3x3