public static void instantiateTwoD()
    {
        //Instantiate TwoD[][]
        TwoD = new Cell[X][Y];
        for(int i = 0 ; i < X;i++)
            for(int j = 0; j < Y;j++)
                TwoD[i][j] = new Cell(i, j, false);
    }