king logic with castling should be done