successfully checks diagonals, updated doLine method