Fixes for pgn when undo, and computer plays black/white. Some database code stub to load master games on demand.