added level creation functionality