public void clickEvent(double mouseX, double mouseY)
	{
		
		double x1 = this.getX1();
		double x2 = this.getX2();
		double y1 = this.getY1(); 
		double y2 = this.getY2();
		
		
		
		
		if(x1 <= mouseX && x2 >= mouseX && y1 <= mouseY && y2 >= mouseY)
		{
			double relMouseX = mouseX - x1;
			//System.out.println("X: " + relMouseX);
			double relMouseY = mouseY - y1;
			//System.out.println("Y: " + relMouseY);
		
			for (Button b : buttonList)
			{
				System.out.println(relMouseX + " " + relMouseY);
		
				b.clickCheck(relMouseX, relMouseY);
				//change image
				try {
					b.setGraphic(g.find(b.getButtonName()));
					// new method needed to change button image
				} catch (GraphicNotFoundException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			
		}	
	}