added a for loop to the down conditional for when the next number is zero, this checks all cells below the current cell