Implementing basic solution checking logic.