Fixed bug were it was possible to go back and forth between gameOver and Menu states by pressing esc