anchor.diff:        // set movement for knights //
         else if (pieceType.match(/glyphicon-knight/)) {
           $('.droppable').droppable("disable");
  -        resetVars(yAxis, xAxis);
  -
  +        var yAxis = parseInt(startingPoint[5]);
  +        var xAxis = letterArray.indexOf(letterVar) + 1;
           var divArray = [];
   
           divArray.push(letterArray[xAxis -2] + (yAxis-2));
  
positive.code:       // set movements for black queen //
        else if (pieceType.match(/glyphicon-queen black/)) {
          $('.droppable').droppable("disable");
  
          // set +x+y diagonal //
          resetVars(yAxis, xAxis);
           var divArray = [];
           while (xAxis <= 8 && yAxis <= 8 ) {
             pushElementToArray(divArray, xAxis, yAxis);
             if (checkForBlockingBlack(xAxis, yAxis)) {break;};
             xAxis += 1;
             yAxis += 1;
             if (checkForBlockingWhite(xAxis, yAxis)) {break;};
           }
  
           // set -x-y diagonal //
           resetVars(yAxis, xAxis);
           while (xAxis >= 1 && yAxis >= 1 ) {
             pushElementToArray(divArray, xAxis, yAxis);
             if (checkForBlockingBlack(xAxis, yAxis)) {break;};
             xAxis -= 1;
             yAxis -= 1;
             if (checkForBlockingWhite(xAxis, yAxis)) {break;};
           }
  
           // set +x-y diagonal //
           resetVars(yAxis, xAxis);
           while (xAxis <= 8 && yAxis >= 1 ) {
             pushElementToArray(divArray, xAxis, yAxis);
             if (checkForBlockingBlack(xAxis, yAxis)) {break;};
             xAxis += 1;
             yAxis -= 1;
             if (checkForBlockingWhite(xAxis, yAxis)) {break;};
           }
  
           // set -x+y diagonal //
           resetVars(yAxis, xAxis);
           while (xAxis >= 1 && yAxis <= 8) {
            pushElementToArray(divArray, xAxis, yAxis);
            if (checkForBlockingBlack(xAxis, yAxis)) {break;};
             xAxis -= 1;
             yAxis += 1;
            if (checkForBlockingWhite(xAxis, yAxis)) {break;};
           }
  
           // set x+ horizontal //
           resetVars(yAxis, xAxis);
           while (xAxis <= 8) {
            pushElementToArray(divArray, xAxis, yAxis);
            if (checkForBlockingBlack(xAxis, yAxis)) {break;};
             xAxis += 1;
            if (checkForBlockingWhite(xAxis, yAxis)) {break;};
           }
  
           // set x- horizontal for Queen //
           resetVars(yAxis, xAxis);
           while (xAxis >= 1 ) {
            pushElementToArray(divArray, xAxis, yAxis);
            if (checkForBlockingBlack(xAxis, yAxis)) {break;};
             xAxis -= 1;
            if (checkForBlockingWhite(xAxis, yAxis)) {break;};
           }
  
           // set y+ vertical for Queen //
           resetVars(yAxis, xAxis);
           while ( yAxis <= 8) {
            pushElementToArray(divArray, xAxis, yAxis);
            if (checkForBlockingBlack(xAxis, yAxis)) {break;};
             yAxis += 1;
            if (checkForBlockingWhite(xAxis, yAxis)) {break;};
           }
  
           // set y- vertical for Queen //
           resetVars(yAxis, xAxis);
           while ( yAxis >= 1) {
            pushElementToArray(divArray, xAxis, yAxis);
            if (checkForBlockingBlack(xAxis, yAxis)) {break;};
             yAxis -= 1;
            if (checkForBlockingWhite(xAxis, yAxis)) {break;};
           }
  
           divArray.forEach(enableElements);
        }
  
        else if (pieceType.match(/glyphicon-king/)) {
          $('.droppable').droppable("disable");
  
          // set +x+y diagonal //
          resetVars(yAxis, xAxis);
  
          var divArray = [];
          console.log(xAxis);
          console.log(yAxis);
          divArray.push(letterArray[xAxis -1] + (yAxis + 1));
          divArray.push(letterArray[xAxis -1] + (yAxis - 1));
          divArray.push(letterArray[xAxis -2] + (yAxis));
  
negative.code:       var yAxis = parseInt(startingPoint[5]);
        var xAxis = letterArray.indexOf(letterVar) + 1;
  
        // resets the x and y axis to their starting positions //
  
  
        // creates the droppable elements for each piece per turn //
         function enableElements(entry) {
           $('.chess-holder').children('div[class*=col]').children('div[id*='+ entry +']').droppable('enable');
         }
  
         // push the current x-y axis to an array of droppable boxes //
         function pushElementToArray(array, xAxis, yAxis) {
           array.push(letterArray[xAxis - 1] + yAxis);
         };
  
         // check for blocking white piece before or after incrementing piece //
         function checkForBlockingWhite(xAxis, yAxis) {
           var letterArray = ["a", "b", "c", "d", "e", "f", "g", "h"];
           return $('.col-md-1').children('div[id*='+ letterArray[xAxis-1] + yAxis+']').children('span[class*=white]').length;
         };
  
         // check for blocking black piece before or after incrementing piece //
         function checkForBlockingBlack(xAxis, yAxis) {
           var letterArray = ["a", "b", "c", "d", "e", "f", "g", "h"];
           return $('.col-md-1').children('div[id*=' + letterArray[xAxis-1] + yAxis+']').children('span[class*=black]').length;
         };
  
        // set forward movement for pawns //
        if (pieceType.match(/glyphicon-pawn black/)) {
          $('.droppable').droppable("disable");
  