Added the isTerminal method.

This will be used to tell the AB search that it found a leaf that has a
game over.