Chess castling move

Chess castling can only happen with an king and rook. As long as the king is not in check and not moved at all.