rewrote the encode-change defn to work recursivly to work for arbitary change sizes
wip change manipulation defns
clj bot now takes change
code tidy up