Add new function matching rooms to courses (removing old one)