public void click() {
        if (inMenu()) {
            mainMenu.click(Mouse.location.x, Mouse.location.y);
        } else if (currentDemo != null) {
            if (currentDemo.running()) {
                currentDemo.click(Mouse.location.x, Mouse.location.y);
            } else {
                if (resume.contains(Mouse.location)) {
                    currentDemo.start();
                } else if (returnToMenu.contains(Mouse.location)) {
                    currentDemo.quit();
                    currentDemo = null;
                }
            }
        }
    }