Adding removeFilter
Adding checks in setting flags for castling checks.
Removing CastleFilter when it is no longer relevant. Fixes #2.