create tile map collide method