code: def is_castling(self, move: Move) -> bool:
          
          if self.kings & BB_SQUARES[move.from_square]:
              diff = square_file(move.from_square) - square_file(move.to_square)
              return abs(diff) > 1 or bool(self.rooks & self.occupied_co[self.turn] & BB_SQUARES[move.to_square])
          return False
docs: Checks if the given pseudo-legal move is a castling move.