Created a new class, Movement, to help calculating the difficult rotations. Next step would be to use it in the basicphysicalonject