One seldom observed legal move is a pawn taking a pawn "en passant". This happen when a pawn moves 2 spaces and stops besides an opposing pawn, which can then move in a diagonal, behind the first pawn, and takes him out in the process.
the castling rule that is tricky is that a king can not castle when in check or if it passes over a square that would be in check.