function pieceMoved(piece, orientation, from, to, initSet){
        var toCol = to[0]
        var toRow = to[1];

        if(!initSet){
            removePiece(piece, orientation, from);
        }

        placePiece(piece);
    }
/**
     * Removes piece and mesh from the board according to the piece's previous position.
     * @param {Array} from The original position of the piece.
     * @param {boolean} orientation The orientation of the piece object.
     * @param {Array} to The target position of the piece object [x,y]
     * Removes the piece from it's original position and places it in it's new position.
     */
Removes piece and mesh from the board according to the piece's previous position.
@param {Array} from The original position of the piece.
@param {boolean} orientation The orientation of the piece object.
@param {Array} to The target position of the piece object [x,y]
Removes the piece from it's original position and places it in it's new position.
Removes piece and mesh from the board according to the piece ' s previous position . @param { Array } from The original position of the piece . @param { boolean } orientation The orientation of the piece object . @param { Array } to The target position of the piece object [ x y ] Removes the piece from it ' s original position and places it in it ' s new position .
function pieceMoved(piece, orientation, from, to, initSet){
        var toCol = to[0]
        var toRow = to[1];
        if(!initSet){
            removePiece(piece, orientation, from);
        }
        placePiece(piece);
    }
function pieceMoved ( piece , orientation , from , to , initSet ) { var toCol = to [ 0 ] var toRow = to [ 1 ] ; if ( ! initSet ) { removePiece ( piece , orientation , from ) ; } placePiece ( piece ) ; }
Removes piece and mesh from the board according to the piece's previous position.
Removes piece and mesh from the board according to the piece ' s previous position .