Function for finding intersection OK
Finding intersection points OK
Implemented arrows painting