CS373: correct movements for localization