Found bug. Failing test added
Bug fixed: castle not possible when rook is captured. Tests pass now