Assigning by reference in getAchievementLevel