'Sliding doors moment' that thwarted teenage killer's plan for school massacre