updatded p1 and p2 to make moves on game board