game tree working