Update IsMoving function

Signed-off-by: Konctantin <gawrilyako@gmail.com>