@Override
    public boolean onMouseDown(int mX, int mY, int button) {
        super.onMouseDown(mX, mY, button);
        
        if(mX > x && mX < x + width && mY > y && mY < y + height) {
            selected = true;
            return true;
        }
        else {
            selected = false;
        }
        
        return false;
    }