How can I know if I can win when the game keeps running continuously?