Added debug output and began bug/error fixes thru testing.

Corrected various reference and scoping errors,syntax errors, etc.

Detailed debugging info can optionally be logged to the console.

Game is running in AI only mode on the console to test program and logic
flow up to the point of choosing a card to play.