Refactored level creation