moved Nodes & Branches to Game.onUpdate

restructured enums and typedefs a little
Merge branch 'master' into jon