private void checkPauseMenu() {
        if (input.back()) {
            running = true;
            stage.clear();
        } else if (input.up()) {
            pauseButtons[selectedButton].setStyle(buttonStyle);
            selectedButton = (selectedButton == 0) ? 0 : selectedButton - 1;
            pauseButtons[selectedButton].setStyle(selectedButtonStyle);
        } else if (input.down()) {
            pauseButtons[selectedButton].setStyle(buttonStyle);
            selectedButton = (selectedButton == pauseButtons.length - 1) ? pauseButtons.length - 1 : selectedButton + 1;
            pauseButtons[selectedButton].setStyle(selectedButtonStyle);
        } else if (input.action()) {
            checkSelectedMenuItem();
        }
    }