Rooms for midterms use the same algorithm as for finals - bad version