public Fighters() {
        //this is the basic syntax to add the parent JPanel to the cardlayou
        contentPane = new JPanel(cd);
        //and now you add the states, with an identifier, to the parent
        contentPane.add(menu, "menu");
        contentPane.add(pp, "playerpick");
        contentPane.add(game, "game");
        contentPane.add(instructions, "instructions");
        contentPane.add(gamecomplete, "gamecomplete");
        contentPane.add(gameover, "gameover");
        contentPane.add(mgw, "mgw");
        //you add the parent to the current JFrame, which switches to the first JPanel it contains (menu)
        add(contentPane);
        //this is where you set your preferences for your jframe
        setTitle("2dfighterz");
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(1000, 750);
        setLocationRelativeTo(null);
        setResizable(false);
        setVisible(true);
    }