@Override
    public void getOptions() {
        for (Component p : getParent().getComponents()) {
            if (p instanceof OptionsPanel) {
                fixedSpeed = ((OptionsPanel) p).isFixedSpeed();
                player1.setLives(((OptionsPanel) p).getLives());
                player2.setLives(((OptionsPanel) p).getLives());
                player1.setWinningScore(((OptionsPanel) p).getWinningScore());
                player2.setWinningScore(((OptionsPanel) p).getWinningScore());
            }
        }

    }