Added check for solvability

Check to see if solvable and display result onto view