Added solution-displaying functionality.