public Tile Emptytile() { bool flag = true; Tile tile; while (flag != false) { tile = EmptyTiles[GetNext(0, EmptyTiles.GetLength(0)), GetNext(0, EmptyTiles.GetLength(1))]; if (tile != null) { return(tile); } } return(null); }