just point your mouse in the direction where you want the worm to go
note: tell me what to add in the comments thanks to @aqua-crystal for having a following the mouse code but it was a little glitchy so i figured out a way to fix that to! just look in the code and don't mess it up