sentences:  Such a 'sum of normal games' can be analysed using the Sprague–Grundy theorem.This theorem states that each position in the game subtract-a-square may be mapped onto an equivalent nim heap size.Optimal play consists of moving to a collection of numbers such that the nim-sum of their equivalent nim heap sizes is zero, when this is possible.