anchor.diff:        // set diagonal movement for white bishop //
         else if (pieceType.match(/glyphicon-bishop white/)) {
           $('.droppable').droppable("disable");
  +        var yAxis = parseInt(startingPoint[5]);
  +        var xAxis = letterArray.indexOf(letterVar) + 1;
  +        var divArray = [];
   
           // set +x+y diagonal //
  -        resetVars(yAxis, xAxis);
  -         var divArray = [];
            while (xAxis <= 8 && yAxis <= 8 ) {
              pushElementToArray(divArray, xAxis, yAxis);
  -           if (checkForBlockingBlack(xAxis, yAixs)) { break;};
  -           xAxis += 1;
  -           yAxis += 1;
  -           if (checkForBlockingWhite(xAxis, yAxis)) { break;};
  -         }
  +           if (checkForBlockingBlack(xAxis, yAxis) !== 0) { break;};
  +           xAxis += 1;
  +           yAxis += 1;
  +           if (checkForBlockingWhite(xAxis, yAxis) !== 0) { break;};
  +         }
  +         divArray.forEach(enableElements);
   
            // set -x-y diagonal //
  -         resetVars(yAxis, xAxis);
  +         yAxis = parseInt(startingPoint[5]);
  +         xAxis = letterArray.indexOf(letterVar) + 1;
            while (xAxis >= 1 && yAxis >= 1 ) {
              pushElementToArray(divArray, xAxis, yAxis);
  -           if (checkForBlockingBlack(xAxis, yAixs)) { break;};
  -           xAxis -= 1;
  -           yAxis -= 1;
  -           if (checkForBlockingWhite(xAxis, yAixs)) { break;};
  -         }
  +           if (checkForBlockingBlack(xAxis, yAxis) !== 0) { break;};
  +           xAxis -= 1;
  +           yAxis -= 1;
  +           if (checkForBlockingWhite(xAxis, yAxis) !== 0) { break;};
  +         }
  +         divArray.forEach(enableElements);
   
            // set +x-y diagonal //
  -         resetVars(yAxis, xAxis);
  +         yAxis = parseInt(startingPoint[5]);
  +         xAxis = letterArray.indexOf(letterVar) + 1;
            while (xAxis <= 8 && yAxis >= 1 ) {
              pushElementToArray(divArray, xAxis, yAxis);
  -           if (checkForBlockingBlack(xAxis, yAixs)) { break;};
  -           xAxis += 1;
  -           yAxis -= 1;
  -           if (checkForBlockingWhite(xAxis, yAixs)) { break;};
  -         }
  +           if (checkForBlockingBlack(xAxis, yAxis) !== 0) { break;};
  +           xAxis += 1;
  +           yAxis -= 1;
  +           if (checkForBlockingWhite(xAxis, yAxis) !== 0) { break;};
  +         }
  +         divArray.forEach(enableElements);
   
            // set -x+y diagonal //
  -         resetVars(yAxis, xAxis);
  +         yAxis = parseInt(startingPoint[5]);
  +         xAxis = letterArray.indexOf(letterVar) + 1;
            while (xAxis >= 1 && yAxis <= 8) {
             pushElementToArray(divArray, xAxis, yAxis);
  -          if (checkForBlockingBlack(xAxis, yAixs)) { break;};
  -           xAxis -= 1;
  -           yAxis += 1;
  -           if (checkForBlockingWhite(xAxis, yAixs)) { break;};
  +          if (checkForBlockingBlack(xAxis, yAxis) !== 0) { break;};
  +           xAxis -= 1;
  +           yAxis += 1;
  +           if (checkForBlockingWhite(xAxis, yAxis) !== 0) { break;};
            }
            divArray.forEach(enableElements);
          }
  
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:       }
      },
      start: function(event, ui) {
        // initialize starting point axis variables //
        var startingPoint = $(this).closest('div').attr('id');
        var startingPosition = $(this).closest('div');
        var pieceType = $(this).attr('class');
  