Instant insanity solver that uses graph theory to solve any instance of the game, if possible.
I originally did this project for a college course, in Python, but decided to translate the code to JavaScript and post it so everyone can easily solve this problem.