AI has been fixed, but the game cannot end when the AI win