Added multiple ways to check if puzzle is solved