Collision detection for the map is now working properly.