Getting user input in the game