Added enum for isSolved() function and added lots of comments