Joint history and move count pruning