To build a school grid, use Easy Timetable, a program to generate school timetables. Very simple, and improve the quality of your institution's teachers' timetables.