fixes and improvements in building the game tree
added example inputs