adding input handling for player 1