cleaning up terrains, reading race flags from a JSON array