tell me if this is laggy
it takes in consideration that the lines have curved ends PROBLEM: when it hits the ground line it sort of goes up and down see inside I added comments