Function getCurrentLevelId