simplify FEN generation and add current_color() function to rules

extracts FEN code into a separate compilation unit

(0) -100 -30 -10 -2 +2 tip

mercurial