Update logic in is_solved.
Uppercase global.