implement setPieces api - to arbitrarily modify the board state