Fixed logic error in loop

Had clue value determined by column instead of row