REFACTOR: Switched to assoc, and split the heading map. Reads better.
Correctly handled the case when someone tried to move the robot before placing it first