added keyboard shortcut "r" to restart the game and "q" to quit