There are rules bugs, including not allowing castling after being in check (and blocking check, having not moved king or rook and not passing through check).
ToucheUser about Chess App, v1.0