add gMapSize global (i know, globals suck) to enable runtime change