public void update(GameContainer container, int delta) {
        Input in = container.getInput();
        float mx = in.getMouseX();
        float my = in.getMouseY();
        if (contains(mx, my)) {
            testForEnter();
        } else {
            testForExit();
        }
    }