added skilltree encoder (unfinished)