edited LoadLevels function and main class.