currently prints a bunch of degenerate solutions so would be more readable if the program could recognise this and only print it once