You are right!
The movement is a little buggy it was pretty hard to make, I would have to revise the code in order to correct it, and maybe make it more precise!