Added helper function isSolved to check for spaces

isSolved takes a puzzle and determines if there are any
spaces. If there are any ' '. Then the puzzle is not yet
solved