Castling can be done only when there aren't any pieces among the king as well as the rook you'll transfer. The king and rook can't have moved previously. You can not castle When your king is in Examine or if doing so would shift your king by means of or to a sq. wherever he will be in Examine. Thanks! We are glad this was helpful.) Stalemate common