change update-map to updated-map and refactor change-map functions
put all begin messages in the input queue
more reliable testing
use new testing function