Made some slight changes to LevelLoader for the sake of readability