Changed parsing method and corrected bug.

1. DIrectly looking at the rows now, instead of checking the class condition now.\n2. Corrected the ranking from alphabetical, to codechef ranking.