Moved some serialization stuff to the Grid class.
Did some general refactoring, added in the bruteforce solver, and also a method to check whether a puzzle has only 1 solution.