Update caseBREADTH to check for valid grades before looping to simplify the loop