added castling check in king move validation