refactoring: loseTheGame function; adding hotkeys