Fix castling prevention when passing on attacked squares