implemented the level generator service