 collections = []
+shapes = ['circle','square','hex']
+next_shape = 0
 
 # keyboard input
 pendingString = ''

        else
          letters[c] = 1

    collection = new NodeCollection(shape)
    collection.addLeaves( letters, pos )
    collections.push(collection)



    if collections.length < 1 or
       not (collections[collections.length-1] instanceof CodeListCollection)
      collection = new CodeListCollection('diamond')
      collections.push(collection)
    else
      collection = collections[collections.length-1]
