Completed pruning_value function. TODO: write encoding, map, position generator.