public Game() {
  setSize(720, 450);
  getContentPane().setBackground(Color.black);
  getContentPane().setLayout(null);
        JMenuBar menuBar = new JMenuBar();
        JMenu menuFile = new JMenu("GLaDOS Menu");
        JMenuItem menuFileExit = new JMenuItem("Terminate Testing");
        menuBar.add(menuFile);
        menuFile.add(menuFileExit);
        setJMenuBar(menuBar);
        setTitle("Think with Portals: Now You're Thinking with Portals");
               
        // Add window listener.
        addWindowListener (
            new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                    System.exit(0);
                }
            }
        );
       menuFileExit.addActionListener( 
         new ActionListener() {
          public void actionPerformed(ActionEvent e) {
           System.exit(0);
          }
         }
        );
       _t = new Timer(1, new ActionListener() {
         public void actionPerformed(ActionEvent e) {
       act();
       for (int i = 0; i < _ObjectList.size(); i++) {
        GameObject o = (GameObject)_ObjectList.get(i);
        o.act();
       }
         }
       });
       addKeyListener(new KeyListener() {
   public void keyTyped(KeyEvent e) {
   }
 
   public void keyPressed(KeyEvent e) {
    char pressed = Character.toUpperCase(e.getKeyChar());
    switch (pressed) {
     case 'Z' : p1Left = true; break;
     case 'X' : p1Right = true; break;
     case 'N' : p2Left = true; break;
     case 'M' : p2Right = true; break;
    }
   }
 
   public void keyReleased(KeyEvent e) {
    char released = Character.toUpperCase(e.getKeyChar());
    switch (released) {
     case 'Z' : p1Left = false; break;
     case 'X' : p1Right = false; break;
     case 'N' : p2Left = false; break;
     case 'M' : p2Right = false; break;
    }
   }
       }); 
    }