public CellBehavior MakeCell(CellTypeData type, int x, int y)
 {
     GameObject cell = (GameObject)Instantiate(cellPrefab);
     cell.transform.position = new Vector2 (x, y);
     CellBehavior cb = cell.GetComponent<CellBehavior> ();
     cb.typeData = type;
     cb.Colorize ();
     cells.Add (cb);
     return cb;
 }
 // selects a random, buildable cell type
 public void SelectRandomCellType(object args)
 {
     List<CellTypeData> cellTypes = CellTypeData.GetBuildable ();
     cellType = cellTypes [randy.Next(0, cellTypes.Count)];
     SpriteRenderer render = this.GetComponent<SpriteRenderer> ();
     if (render != null) {
         render.color = cellType.Color;
     }
     selected = false;
 }