Added tilemap collision detection