get_wall_intersection_type refactoring