 			down = normal;
 		}
 		
+		/**
+		 * Puts a flag on the cell.
+		 */
 		public function Flag():void
 		{
 			// TODO: implement
 		}
-		
-		private static function CreateNumberedCell(value:int):Image
-		{
-			if (value == 0)
-				return new Image(Assets.EMPTY_CELL_GRAPHIC);
-			
-			var emptyCell:Image = new Image(Assets.EMPTY_CELL_GRAPHIC);
-			var cellWithText:BitmapData = new BitmapData(CellSize, CellSize, false, 0xFFFFFF);
-			Text.font = "default";
-			//Text.size = 12;
-			//var textImage:Text = new Text(String(value), 7, 5, CellSize, CellSize);
-			var textImage:Text = new Text(String(value), 6, 3, CellSize, CellSize);
-			textImage.alpha = .8;
-			if (value == 1)
-				++textImage.x;
-			textImage.color = Colors[value];
-			
-			emptyCell.render(cellWithText, new Point(0, 0), new Point(0, 0));
-			textImage.render(cellWithText, new Point(0, 0), new Point(0, 0));
-			
-			return new Image(cellWithText);
-		}
 	}
 }

		public function Cell(rowIndex:int, columnIndex:int, clickHandler:Function):void
		{
			super(columnIndex * CellSize + FieldOffset.x, rowIndex * CellSize + FieldOffset.y, CellSize, CellSize, "", onClick);
			normal = new Image(Assets.CELL_GRAPHIC);
			hover = new Image(Assets.CELL_OVER_GRAPHIC);
			down = new Image(Assets.CELL_DOWN_GRAPHIC);
			
			this.rowIndex = rowIndex;
			this.columnIndex = columnIndex;

			++adjacentMineCount;
		}
		
		/**
		 * Deactivates the cell so it no longer responds to the player.
		 */
		public function Deactivate():void
		{
			callback = null;
