What is castling?


Here you go:
https://www.chess.com/learn-how-to-play-chess
The only legal move in chess where two pieces move in one motion is called "castling" and it involves the King and Rook (like your friend did). Check this link under "special moves" in chess. The three special moves are Castling, en passant and promotion.