sliding & colliding tiles functionality