Implemented a level generator