Added parameters to createNewLevel