Added a map and movement functions, including a distance calculator.