Fixed bug involving declaring two variables of the same name within separate conditionals and loops.