code: def parse(self):
  		
  		c = Collection()
  		while self.index < self.datalen:
  			g = self.parseOneGame()
  			if g:
  				c.append(g)
  			else:
  				break
  		return c
docs: Parses the SGF data stored in 'self.data', and returns a 'Collection'.