Issue #1 - fixed the off-by-one error that was causing annoying jerk at the end of the walk animation cycle