creates an _is_solved method