public Game()
  {
    //Setup the frame and the panel to use to render our game.
    JFrame frame = new JFrame("[SUPER MARIO BROS]");
    JPanel panel = (JPanel)frame.getContentPane();
    panel.setPreferredSize(new Dimension(768,420));
    panel.setLayout(null);
    //Add this Canvas to the frame with the correct resolution
    setBounds(0,0,800,600);
    panel.add(this);
    //Don't use the slow awt rendering mode. Instead use the accelerated graphics.
    setIgnoreRepaint(true);
    //pack up the frame and make it visible (so people can see the game=P)
    //Also removes the ability to resize the frame to maintain a specific resolution.
    frame.pack();
    frame.setResizable(false);
    frame.setVisible(true); 
    //allow the user to exit using the Frame 'X' at the top right corner
    frame.addWindowListener(new WindowAdapter()
    {
      public void windowClosing(WindowEvent e)
      {
        System.exit(0);
      }
    });
      //Allow user input
    input = new KeyboardInput();
    this.addKeyListener(input);
      //Get the focus on our game.
    requestFocus();
    //setup our accelerated graphics
    createBufferStrategy(2);
    strategy = getBufferStrategy();
    spriteLoader = new SpriteLoader();
    this.loadContent();
  }