public MainMenu(JFrame frame) {
		this.setPreferredSize(new Dimension(WIDTH * 2, HEIGHT * 2));
		this.setMaximumSize(new Dimension(WIDTH * 2, HEIGHT * 2));
		this.setMinimumSize(new Dimension(WIDTH * 2, HEIGHT * 2));
		this.addMouseListener(new MouseListener() {
			
			@Override
			public void mouseClicked(MouseEvent e) {
				int mx = e.getX();
				int my = e.getY();
				//System.out.println(e.getX()+" "+e.getY());
				if (550 >= mx && mx >=330  && 190 >= my && my >= 130){
					//System.exit(4);
					running = false;
					frame.setContentPane(new MainGame());
					frame.pack();
					frame.setVisible(true);
					frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
				}
				
			}

			@Override
			public void mouseEntered(MouseEvent e) {
				//System.out.println("entered");
				
			}

			@Override
			public void mouseExited(MouseEvent e) {
				//System.out.println("exited");
				
			}

			@Override
			public void mousePressed(MouseEvent e) {
				//System.out.println("pressed");
				
			}

			@Override
			public void mouseReleased(MouseEvent e) {
				//System.out.println("released");
				
			}
		});
		this.setFocusable(true);
		this.requestFocus();
		
	}