added courseMastered function
badge displayed if mastered course, design by Alyssa Darmanin
fixed merge conflict in functions