@SuppressWarnings("deprecation")
	@Override
	public void mouseMoved(MouseEvent e) {
		for (Button b : buttons) {
			if (e.getPoint().x > b.p.x && e.getPoint().x < b.p.x + b.d.width && e.getPoint().y > b.p.y && e.getPoint().y < b.p.y + b.d.height) {
				b.setHovering(true);
				display.frame.setCursor(Cursor.HAND_CURSOR);
			} else if(b.isHovering()){
				b.setHovering(false);
				display.frame.setCursor(Cursor.DEFAULT_CURSOR);
			}
		}
	}