Update MapGen.php

Updated gen to use array