Pressing q for exiting the game added.