Fix rankLeaf to no longer trigger the end of the game.
Minimax player seems to have trouble undoing moves.