public static void randomBoard()
    {
        int half = (int)((double)(X*Y)*InitPercentage);
        //Random Initial Placement
        for(int i = 0; i < half ;i++)
        {
            int x = random(0, X-1);
            int y = random(0, Y-1);
            if(!TwoD[x][y].alive)
            {
                TwoD[x][y].alive = true;
            }
        }
    }