public void paint(Graphics g) {
        //the objects created above are made clickable with the mouseClicked method
        super.paint(g);
        final Graphics2D g2d = (Graphics2D) g;
        g2d.setColor(Color.white);
        g2d.drawImage(MenuBG, 0, 0, this);
        g2d.setFont(new Font("Courier", Font.BOLD, 30));
        g2d.setColor(Color.red);
        g2d.draw(Exit);
        g2d.drawString("Exit", Exit.x + 20, Exit.y + 35);
        g2d.setFont(new Font("Courier", Font.BOLD, 60));
        
        
        
        
        if (Menu.isSingle()) {
            g2d.drawString("You collected " + Game.points + " coins", 190, 200);
            g2d.drawString("Congratulations you win!", 125, 380);
            g2d.draw(PlayAgain);
            g2d.drawString("Play Again?", PlayAgain.x + 30, PlayAgain.y + 70);
        } else {
            g2d.drawString("Congratulations Player " + MultiGameWin.winner + " wins!", 70, 380);
            g2d.draw(PlayAgain);
            g2d.drawString("Play Again?", PlayAgain.x + 30, PlayAgain.y + 70);
        }
        addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent me) {
                System.out.println(me);
                //returns to the main menu
                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);
                }
                //re runs single player if the user clicks the button
                if (me.getX() > PlayAgain.x && me.getX() < PlayAgain.x + PlayAgain.width && me.getY() > PlayAgain.y && me.getY() < PlayAgain.y + PlayAgain.height) {
                    Fighters.newGame();
                    tries++;
                    Fighters.cd.show(Fighters.contentPane, "game");
                    
                }
            }
        });
        
        
    }