added break to end of the loop, to escape from the game