anchor.diff:  		{
   			newGame();
   		});
  +		
  +		holder = new Sprite();
  +        stage.addChild(holder);
   	});
   }
   
   void makeNewBall()
   {
  -	if(totalBalls < MAX_BALLS)
  -	{
  -		totalBalls++;
  -		makeBall();
  +	if(balls.length < MAX_BALLS)
  +	{
  +		holder.addChild(makeBall());
  +	}
  +}
  +
  +void makeNewSquare()
  +{
  +	if(squares.length < MAX_SQUARES)
  +	{
  +		holder.addChild(makeSquare());
   	}
   }
   
   DraggableBall makeBall()
   {
   	DraggableBall ball = getDraggableBall();
  -	stage.addChild(ball);
   	ball.x = makerBall.x;
   	ball.y = makerBall.y + 50;
   	balls.add(ball);
   	return ball;
   }
  +
  +DraggableBall makeSquare()
  +{
  +	DraggableBall square = getDraggableSquare();
  +	square.x = makerSquare.x;
  +	square.y = makerSquare.y + 50;
  +	squares.add(square);
  +	return square;
  +}
  +
  +
   
   Sprite getDraggableBall({num x: 0, num y: 0})
   {
  
positive.code: 		ball.removeFromParent();
  	});
  	balls.clear();
  }
  
  void loadGame()
  
negative.code: 	{
  		var memento = JSON.decode(window.localStorage["saveGame"]);
  		destroyAll();
  		
  		List balls = memento["balls"];
  		List squares = memento["squares"];
  		List preSortList = new List();
  		balls.forEach((ball)
  		{
  			ball["type"] = "ball";
  			preSortList.add(ball);
  		});
  		squares.forEach((square)
  		{
  			square["type"] = "square";
  			preSortList.add(square);
  		});
  		preSortList.sort((a, b)
  		{
  			int aDepth = a["z"];
  			int bDepth = b["z"];
  			if(aDepth > bDepth)
  			{
  				return 1;
  			}
  			else if(aDepth < bDepth)
  			{
  				return -1;
  			}
  			else
  			{
  				return 0;
  			}
  		});
  				
  		int index;
  		int len = preSortList.length;
  		for(index = 0; index < len; index++)
  		{
  			Object memento = preSortList[index];
  			DraggableBall item;
  			if(memento["type"] == 'ball')
  			{
  				item = makeBall();
  			}
  			else if(memento["type"] == 'square')
  			{
  				item = makeSquare();
  			}
  			item.x = memento["x"];
  			item.y = memento["y"];
  			holder.addChild(item);
  		}
  	}
  }
  
  