public ClickableObject(int x, int y, int w, int h) {
        if (x >= 0 && y >= 0) {
            xy = new Location(x,y);
        } else if (x < 0 || y < 0) {
            throw new IllegalArgumentException("All values must be non-negative");
        }
        if (w < 1 || h < 1) {
            throw new IllegalArgumentException("Objects dimensions must be positive");
        } else if (w > 0 && h > 0) {
            this.width = w;
            this.height = h;
        }
    }