REFACTORED: moved player1 input handling into the player class