Adding movement functions and updating the map.