Almost finished gameview->generate(). There's just a bug left which'll appear if you try to unsort mapindexes.