public void onDragged(Graphics g, MouseEvent e, int mouseLastX, int mouseLastY) {
		
		switch (e.getModifiers()){
		case InputEvent.BUTTON1_MASK: {
			if (!isEqualT(mouseLastX, e.getX(), 1)
					&& isEqualT(mouseLastY, e.getY(), 8)) {
				//System.out.println("dragged");
				if (tileValue == 3)
					tileValue = 1;
				else
					tileValue = 2;
			}

			if (!isEqualT(mouseLastY, e.getY(), 1)
					&& isEqualT(mouseLastX, e.getX(), 8)) {
				//System.out.println("dragged");
				if (tileValue == 2)
					tileValue = 1;
				else
					tileValue = 3;
			}
		}
			break;
		case InputEvent.BUTTON3_MASK: {
			tileValue = 0;
		} break;
		default: break;
		}
		
		g.drawImage(tiles[tileValue], getX(), getY(), getDimension(), getDimension(), null);
		
	}