public MainMenuPanel(MainPanel mainPanel){
		super(MainMenuPanel.ID,mainPanel);
		
		this.background = new Sprite("others/backMenu.png"); 
		this.playSprite = new Sprite("others/menuButton.png");
		this.exitSprite = new Sprite("others/menuButton.png");
		this.mainPanel = mainPanel;
		
		this.setLayout(null);
		
		this.playButton = new JButton(){
			
			public void paintComponent(Graphics g){
				Point p1 = MainMenuPanel.this.getLocationOnScreen();
				Point p2 = MouseInfo.getPointerInfo().getLocation();
				Point p = new Point(p2.x-p1.x-240,p2.y-p1.y-300);
				
				if (this.contains(p)){
					MainMenuPanel.this.playSprite.clip(300, 0, 300, 100);
				}
				else {
					MainMenuPanel.this.playSprite.clip(0, 0, 300, 100);
				}
			}
			
		};
		this.playButton.setBounds(240,300,300,100);
		this.playButton.setBorderPainted(false);
		this.playButton.addActionListener(new ActionListener() {
			
			public void actionPerformed(ActionEvent arg0) {
				MainMenuPanel.this.mainPanel.setPanel(GamePanel.ID);
			}
		});
		
		
		this.exitButton = new JButton(){
			public void paintComponent(Graphics g){
				Point p1 = MainMenuPanel.this.getLocationOnScreen();
				Point p2 = MouseInfo.getPointerInfo().getLocation();
				Point p = new Point(p2.x-p1.x-240,p2.y-p1.y-420);
				
				if (this.contains(p)){
					MainMenuPanel.this.exitSprite.clip(300, 0, 300, 100);
				}
				else {
					MainMenuPanel.this.exitSprite.clip(0, 0, 300, 100);
				}
			}
		};
		this.exitButton.setBounds(240,420,300,100);
		this.exitButton.setBorderPainted(false);
		this.exitButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				System.exit(0);
			}
		});
		
		
		this.add(this.playButton);
		this.add(this.exitButton);
		
		
	}