a grid can check if it's solved