added player1 and player2 function to class pieces