seems when there are 0 or less steps, mob xpos/ypos getting NaN values. Added validation