renaming p1 and p2 to player1 and player2