Added MoveDirection.NONE to prevent nullpoint.