made it so that the ladybug copes with more curves, on higher speeds. the square doesn't work though. (on high speeds) if the ladybug goes off track, bounce off edges until it finds track. this allows for more complicated tracks, such as the square, to work.
all credit to @MFCStudent18 and @Aardvark.