prepared code base for implementing rules

implemented castling (without validation)

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

mercurial