Made wall clipping segment-based thus fixing remaining clipping problems