Removed redundant GlobalVar.LevelCount, using levels.Count instead.