Added check if puzzle is solved
Moved everything from using global variables
Start of search
Fixed no solution bug