anchor.diff:        var oldBox = ui.draggable.parent().attr('id');
         var classCheck = stationBox.children().attr('class');
   
  +      // captured pieces go to side bar //
         if (stationBox.children().length > 0 && piece.match(/white/) !== null) {
           stationBox.children().detach().appendTo('.black-pieces');
         }
  
positive.code:       // set movements for white queen //
        else if (pieceType.match(/glyphicon-queen white/)) {
          $('.droppable').droppable("disable");
  
          // set +x+y diagonal //
          resetVars(yAxis, xAxis);
           var divArray = [];
           while (xAxis <= 8 && yAxis <= 8 ) {
             pushElementToArray(divArray, xAxis, yAxis);
             if (checkForBlockingWhite(xAxis, yAxis)) {break;};
             xAxis += 1;
             yAxis += 1;
             if (checkForBlockingBlack(xAxis, yAxis)) {break;};
           }
  
           // set -x-y diagonal //
           resetVars(yAxis, xAxis);
           while (xAxis >= 1 && yAxis >= 1 ) {
             pushElementToArray(divArray, xAxis, yAxis);
             if (checkForBlockingWhite(xAxis, yAxis)) {break;};
             xAxis -= 1;
             yAxis -= 1;
             if (checkForBlockingBlack(xAxis, yAxis)) {break;};
           }
  
           // set +x-y diagonal //
           resetVars(yAxis, xAxis);
           while (xAxis <= 8 && yAxis >= 1 ) {
             pushElementToArray(divArray, xAxis, yAxis);
             if (checkForBlockingWhite(xAxis, yAxis)) {break;};
             xAxis += 1;
             yAxis -= 1;
             if (checkForBlockingBlack(xAxis, yAxis)) {break;};
           }
          //  divArray.forEach(enableElements);
           // set -x+y diagonal //
           resetVars(yAxis, xAxis);
           while (xAxis >= 1 && yAxis <= 8) {
            pushElementToArray(divArray, xAxis, yAxis);
            if (checkForBlockingWhite(xAxis, yAxis)) {break;};
             xAxis -= 1;
             yAxis += 1;
            if (checkForBlockingBlack(xAxis, yAxis)) {break;};
  
           }
  
           // set y+ vertical for white queen //
           resetVars(yAxis, xAxis);
           while (yAxis <= 8) {
            pushElementToArray(divArray, xAxis, yAxis);
            if (checkForBlockingWhite(xAxis, yAxis)) {break;};
             yAxis += 1;
            if (checkForBlockingBlack(xAxis, yAxis)) {break;};
           }
  
           // set y- vertical for white queen //
  
           while (yAxis >= 1) {
            pushElementToArray(divArray, xAxis, yAxis);
            if (checkForBlockingWhite(xAxis, yAxis)) {break;};
             yAxis -= 1;
            if (checkForBlockingBlack(xAxis, yAxis)) {break;};
           }
  
           // set x+ horizontal for white queen  //
           resetVars(yAxis, xAxis);
           while (xAxis <= 8 ) {
            pushElementToArray(divArray, xAxis, yAxis);
            if (checkForBlockingWhite(xAxis, yAxis)) {break;};
             xAxis += 1;
            if (checkForBlockingBlack(xAxis, yAxis)) {break;};
           }
  
           // set x- horizontal for white Queen //
           resetVars(yAxis, xAxis);
           while (xAxis >= 1 ) {
            pushElementToArray(divArray, xAxis, yAxis);
            if (checkForBlockingWhite(xAxis, yAxis)) {break;};
             xAxis -= 1;
            if (checkForBlockingBlack(xAxis, yAxis)) {break;};
           }
           divArray.forEach(enableElements);
        }
  
negative.code:       // set movement for knights //
        else if (pieceType.match(/glyphicon-knight/)) {
          $('.droppable').droppable("disable");
          var yAxis = parseInt(startingPoint[5]);
          var xAxis = letterArray.indexOf(letterVar) + 1;
          var divArray = [];
  
          divArray.push(letterArray[xAxis -2] + (yAxis-2));
  