public Main() { //Constructor to create the window
		JFrame frame = new JFrame("Top Hat 3: Total Destruction");
		
		// Get the current screen size
		Toolkit toolkit = Toolkit.getDefaultToolkit();
		Dimension scrnsize = toolkit.getScreenSize();
		resY = scrnsize.height;
		resX = scrnsize.width;
		width = resX-2*(resX/12);
		height = resY-2*(resY/12);
		
		//sets contentPanel, also sets opening size
		JPanel contentPanel = (JPanel) frame.getContentPane();
		contentPanel.setPreferredSize(new Dimension(width, height));
		contentPanel.setLayout(null);
		
		//sets the bounds of game screen
		setBounds(0, 0, width, height);
		contentPanel.add(this);
		setIgnoreRepaint(true);
		
		//sets default frame position
		frame.pack();
		frame.setResizable(true);
		frame.setVisible(true);
		frame.setLocation(resX/12, resY/12);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		frame.addKeyListener(new MultiKeyPressListener());
		
		createBufferStrategy(2); //use 2 buffers for double buffering
		strategy = getBufferStrategy();

		gameState = MAIN_MENU;
	}