This was quite the challenge. The only part I didn't fix was what I call the "perfect number" case. When the mouse is on a point that is exactly a multiple of 57 it will rest on the line. I think this is the tradeoff of refusing to round. maybe you can add a 1 if it's a multiple of 57 before you round and it will work.