rough draft of map and menu code