TODO to remind myself about factoring out the random map generation