working dragpaint of tiles