Updated the logic to show the previous guess