Refactor code checking for challenge completion

New method isAllChallengesComplete() added to Track so that code checking for challenge completion isn't duplicated.