map generator implmented, unit tests added