function prepSpare(pos, prepPos){
      var sp = gridSquares[pos.x][pos.y].spare;
      sp.setPosition(prepPos.x, prepPos.y);
      $timeout(function(){
        sp.setSpare(false);
        $element.addClass("sliding");
      });
    }
/*
     * move spare grid into position for transition
     *    - pos: position of spare
     *    - prepPos: pre position of spare
     */
move spare grid into position for transition
- pos: position of spare
- prepPos: pre position of spare
move spare grid into position for transition - pos : position of spare - prepPos : pre position of spare
function prepSpare(pos, prepPos){
      var sp = gridSquares[pos.x][pos.y].spare;
      sp.setPosition(prepPos.x, prepPos.y);
      $timeout(function(){
        sp.setSpare(false);
        $element.addClass("sliding");
      });
    }
function prepSpare ( pos , prepPos ) { var sp = gridSquares [ pos . x ] [ pos . y ] . spare ; sp . setPosition ( prepPos . x , prepPos . y ) ; $timeout ( function ( ) { sp . setSpare ( false ) ; $element . addClass ( "sliding" ) ; } ) ; }
move spare grid into position for transition
    - pos: position of spare
    - prepPos: pre position of spare
move spare grid into position for transition - pos : position of spare - prepPos : pre position of spare