Implemented logic, adding all groups to timetable