public void paint(Graphics g) {
        //the different images are drawn on the JPanel
        super.paint(g);
        final Graphics2D g2d = (Graphics2D) g;
        Fighters.newPP();
        g2d.setColor(Color.white);
        g2d.setFont(new Font("Courier", Font.BOLD, 30));

        g2d.drawImage(MenuBG, 0, 0, this);

        g2d.setColor(Color.red);
        g2d.drawString("Single Player", OnePlayer.x + 18, OnePlayer.y + 35);
        g2d.drawString("Multiplayer", TwoPlayer.x + 31, TwoPlayer.y + 35);
        g2d.drawString("Controls", Instructions.x + 45, Instructions.y + 35);
        g2d.drawString("Exit", Exit.x + 80, Exit.y + 35);
        g2d.draw(OnePlayer);
        g2d.draw(TwoPlayer);
        g2d.draw(Instructions);
        g2d.draw(Exit);
        addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent me) {
                //the objects created above are made clickable with the mouseClicked method
                System.out.println(me);
                if (me.getX() > OnePlayer.x && me.getX() < OnePlayer.x + OnePlayer.width && me.getY() > OnePlayer.y && me.getY() < OnePlayer.y + OnePlayer.height) {
                    System.out.println("1 Player");
                    Single = true;
                    Fighters.newPP();
                    Fighters.cd.show(Fighters.contentPane, "playerpick");
                }
                if (me.getX() > TwoPlayer.x && me.getX() < TwoPlayer.x + TwoPlayer.width && me.getY() > TwoPlayer.y && me.getY() < TwoPlayer.y + TwoPlayer.height) {
                    System.out.println("2 Player");
                    Single = false;
                    Fighters.newPP();
                    Fighters.cd.show(Fighters.contentPane, "playerpick");

                }
                if (me.getX() > Instructions.x && me.getX() < Instructions.x + Instructions.width && me.getY() > Instructions.y && me.getY() < Instructions.y + Instructions.height) {
                    System.out.println("Instructions");
                    Fighters.cd.show(Fighters.contentPane, "instructions");
                }
                if (me.getX() > Exit.x && me.getX() < Exit.x + Exit.width && me.getY() > Exit.y && me.getY() < Exit.y + Exit.height) {
                    System.out.println("EXIT");
                    System.exit(1);
                }
            }
        });


    }