Done: function to check line and circle crossing