Got some more advanced input handling and game state switching going.