Corrected bugs. Plays to a draw if it can't win.

Signed-off-by: Bruce A. Johnson <bjohnson@sam>