adding input handling for player 2.