Reduced the amount of code to create a level