public static void instantiateDots()
    {
        //Instantiate TwoD[][]
        Dots = new JLabel[X][Y];
        for(int i = 0 ; i < X;i++)
            for(int j = 0; j < Y;j++)
                Dots[i][j] = new JLabel();
    }