some bugginess

for phalanx coach mode sometime it doesn't update the current move
 fix is to use the keyboard cursor to move back and forward

 this bug is in phalanx analysis mode too, if you advance move very fast
  by pressing forward several times quickly, in some situation phalanx
  will analyze the previous move


for blunder check, don't start from a mate situation but move back one
 if it doesn't start, then press back to start from one move back.

#todo
  parse analysis, same with comment, to see how it is,
    there seem to be a bug in crafty that it select for the opponent not the best move




blunder check

from back
and then issue undo
collect analysis

keep score and move, to keep track other move
  and sometime crafty cut down analysis
  with !! and not elucidate further

can send depth


dialog, has depth and second


display the analysis window and 
output the analysis option.?

just keep track of the score for now, for black and for white

because the score go down when the position simplify

and move 


hook up to winboard only, don't change backend

winboard already has the analysis timer, just change the event

and hook from analyst popup.


so hook as analysis mode in the winboard file, and pass the event t
to the analyst or to the default behavrio
==========
LoadGameOneMove
 there is movelist

comment list

global lists

char moveList[MAX_MOVES][MOVE_LEN], parseList[MAX_MOVES][MOVE_LEN * 2];
char *commentList[MAX_MOVES]



DrawPosition is one of the frontend function (frontend.h)
called whenever to update

(so hook this to the movelist if up then we update the movelist)

updating the movelist, do we remove everything and update
everything?

we only have board,

we compare the moves variable, if changed then we update those

use both structure for internal data
  has a list of line -> move, since we will list comments and try
   to parse it.
and global (for saving the location)

have an array of flags (move | comment | w | b | empty)

History last, 
==========================
todo
check history window if closed
do a truncate game and update the move list
match selected line with current move


searchdepth dialog in time control
a number (0 default), ...

do handling of closing the movelist window 
this is done by checking for cancel command in
the window proc
[see
  case WM_COMMAND: /* message: received a command */
    switch (LOWORD(wParam)) {
    case IDCANCEL:
      EditGameEvent();
      return TRUE;
    default:
]

