function switchSpare(pos){
      var sqr = gridSquares[pos.x][pos.y];
      var holder = sqr.spare;

      sqr.spare = sqr.live;
      sqr.spare.setSpare(true);
      sqr.live = holder;
      sqr.live.setSpare(false);
    }
/*
     * switchSpare and live (after slide)
     */
switchSpare and live (after slide)
switchSpare and live ( after slide )
function switchSpare(pos){
      var sqr = gridSquares[pos.x][pos.y];
      var holder = sqr.spare;
      sqr.spare = sqr.live;
      sqr.spare.setSpare(true);
      sqr.live = holder;
      sqr.live.setSpare(false);
    }
function switchSpare ( pos ) { var sqr = gridSquares [ pos . x ] [ pos . y ] ; var holder = sqr . spare ; sqr . spare = sqr . live ; sqr . spare . setSpare ( true ) ; sqr . live = holder ; sqr . live . setSpare ( false ) ; }
switchSpare and live (after slide)
switchSpare and live ( after slide )