If the 'winning' side (according to the static evaluation) does not have mating material, drag the score towards 0.
Added altstrtok_r, an alternative to the POSIX strtok_r which is not always available. This implementation was written by Charlie Gordon, and is in the public domain (see util.c).
Changed how we read input from the 'GUI'. Previous method used POSIX getline() function which is not always available.