move animation algorithm initial