Added different behavior for side of the map