STIRLING - Thomas Hamilton (43), who killed 16 children, their teacher and then himself last March, may have been planning the massacre up to two years, a nine year old boy said yesterday. The boy, whose testimony was read at the Dunblane inquiry, said the gunman had questioned him often about the layout and timetable of the school.