Some time after arriving at the orphanage Beth demonstrates prodigal levels of mathematics, most likely due to her mother who had a Ph.D in the field. She solves nine square root problems in an amount of time which horrifies her teacher who sends her to the basement to dust the erasers.
This is when she meet Mr Shaibel and becomes fascinated with the checkered pattern of the eight-by-eight grid