added previous value checker

added a function to check the previous guess so as to provide context
hints (colder or hotter than previous guess)