fixed collision detection issues / moved line intersects to the shape class