fixed IsMoving function

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