Chess: castling bugfix.