function removePiece(piece, orientation, from){
        var x = from[0];
        var y = from[1];
        for(var i = 0; i < piece.type; i++ ){
            if (orientation === 1){
                myBoard[x + i][y] = 0;
            }else{
                myBoard[x][y + i] = 0;
            }       
        }
    }
/**
     * Removes piece and mesh from the board according to the piece's previous position.
     * @param {Object} piece The piece object.
     * @param {boolean} orientation The original orientation of the piece object.
     * @param {Array} from The original position of the piece object [x,y]
     */
Removes piece and mesh from the board according to the piece's previous position.
@param {Object} piece The piece object.
@param {boolean} orientation The original orientation of the piece object.
@param {Array} from The original position of the piece object [x,y]
Removes piece and mesh from the board according to the piece ' s previous position . @param { Object } piece The piece object . @param { boolean } orientation The original orientation of the piece object . @param { Array } from The original position of the piece object [ x y ]
function removePiece(piece, orientation, from){
        var x = from[0];
        var y = from[1];
        for(var i = 0; i < piece.type; i++ ){
            if (orientation === 1){
                myBoard[x + i][y] = 0;
            }else{
                myBoard[x][y + i] = 0;
            }       
        }
    }
function removePiece ( piece , orientation , from ) { var x = from [ 0 ] ; var y = from [ 1 ] ; for ( var i = 0 ; i < piece . type ; i ++ ) { if ( orientation === 1 ) { myBoard [ x + i ] [ y ] = 0 ; } else { myBoard [ x ] [ y + i ] = 0 ; } } }
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 .