Added function to store pieces
New function updatePieces saves the location of all placed pieces in an array. Also modified placePiece to do nothing if there is already a piece in the location clicked