checks for valid king/queen side casteling