Orthographic correction

Change the condition to the end of the game