public Level(int width, int height) {
        w = width;
        h = height;
        b = new Block[w * h];
        int c = 0;
        Random r = new Random();
        int cupLoc = r.nextInt(w * h);
        for (int y = 0; y < h; y++) {
            for (int x = 0; x < w; x++) {
                Block bb = null;
                c++; //programming humor
                if (c == cupLoc) {
                    System.out.println(x + " " + y);
                    bb = new Cup(x, y);
                } else if (r.nextInt(5) == 0) {
                    bb = genSolid();
                } else if (r.nextInt(50) == 0) {
                    bb = new Alien(x, y);
                } else if (r.nextInt(50) == 0) {
                    bb = new Heart(x, y);
                } else {
                    bb = new Block();
                }
                b[x + y * w] = bb;
            }
        }
    }