@Override
	public void draw(Graphics g) {
        g.setColor(new Color(0, 0, 0, 30));
        g.fillRect(0, 0, width, height);

        g.setColor(new Color(20, 20, 20));
        for (int i = 0; i < width; i += 50) {
            for (int j = 0; j < height; j += 50) {
                g.fillRect(i, j, 5, 5);
            }
        }

        for (int i = 0; i < planets.size(); i++) {
            planets.get(i).draw(g, width, height);
        }

        if (drag != null) {
            double centerX = drag.getX() + drag.getRadius();
            double centerY = drag.getY() + drag.getRadius();
            drag.setRadius(Math.sqrt((Mouse.location.getX() - centerX) * (Mouse.location.getX() - centerX) + (Mouse.location.getY() - centerY) * (Mouse.location.getY() - centerY)));
            drag.setX(centerX - drag.getRadius());
            drag.setY(centerY - drag.getRadius());
            drag.draw(g, width, height);
        }

        for (int i = 0; i < particles.size(); i++) {
			particles.get(i).draw(g, width, height);
		}
	}