rules: fix open castling logic