added solution for guessing game