some minor issues
In live games you can offer draws. Other draw conditions are automatic (triple repetition of position, 50 moves with no captures or pawn moves, stalemate)
Not sure what you mean about castling but you can't castle through pieces and you can't castle if your king crosses an attacked square, and can't castle into or out of check.