Extended checkValid method

Implemented a comparison between the original, unchanged graph and the
solution graph, to check for misplaced, additional or missing edges