Update loops in levels 8 and 9 (apparently range isn't inclusive)