Prune out branches of impossible actions on Tree exploring