Implementing code to allow a level to be randomized