added util.cs to calculate the intersection point with the wall display.