chess-perft: Refactor to avoid repeatedly visiting the same list of plies at depth 1.