Weird jumping movement

@dudekriko

Could you also edit your question’s code so that it uses code tags .

It is pain to read the code without code tags.