Adds logic to add a piece to the board