Handles odd number of students correctly