public Light(String color, String location) {
        this.color = color;
        this.location = location;
        light.addMouseListener(this);
        switch (location) {
        case "north":
            rotate(180);
            updatePosition(320, 220);
            break;
        case "east":
            rotate(270);
            updatePosition(350, 320);
            break;
        case "south":
            updatePosition(250, 350);
            break;
        case "west":
            rotate(90);
            updatePosition(220, 250);
            break;
        }

    }