public MainMenuOpt() {
        menu = new OptionsMenu();
        config.loadConfig("settings", ".xml");

        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e) {
            e.printStackTrace();
        }
        setPreferredSize(new Dimension(800, 400));
        frame.setUndecorated(true);
        frame.setResizable(false);
        frame.setTitle("MainMenu");
        frame.add(this);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(800, 400);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
        contentPane = new JPanel();
        contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
        //setContentPane(contentPane);
        contentPane.setLayout(null);
        drawButtons();
        InputHandler input = new InputHandler();
        addMouseListener(input);
        addMouseMotionListener(input);
        addKeyListener(input);
        addFocusListener(input);
        frame.repaint();

    }