Adds solve method for taking a puzzle and solving it