Implement logic behind check solution