fixed esc exit for game and menu