implemented enough of xboard protocol to play krk
broke out 3 input handlers