established the winning conditions of the game