added declarations for castling