Almost, almost there with the successor function, then on to minimax implementation