Updated the movementMap logic.