@Override
	public void mousePressed(MouseEvent e) {
		mx = e.getX();
		my = e.getY();
		if(e.getButton() == MouseEvent.BUTTON1) { // Left button pressed
			if(!main.hasAbilitySelected()) {
				isButtonPressed = true;
				selectStartX = mx;
				selectStartY = my;
				setBackground(Color.gray);
			}
		} else if(e.getButton() == MouseEvent.BUTTON2) { // Middle button pressed
			//System.out.println("middle button pressed");
		} else {  // Right button pressed
			//System.out.println("right button pressed");

		}
		repaint();
		e.consume();
	}