fixed run-headless to send map data to game