//Helper methods below

    private void ActivateOrCreateTile(int xIndex, int yIndex, List <GameObject> tileObjects)
    {
        if (!terrainTiles.ContainsKey(new Vector2(xIndex, yIndex)))
        {
            tileObjects.Add(bio.CreateTile(xIndex, yIndex));
        }
        else
        {
            GameObject t = terrainTiles[new Vector2(xIndex, yIndex)];
            tileObjects.Add(t);
            if (!t.activeSelf)
            {
                t.SetActive(true);
            }
        }
    }