Completed the function "guess"