Added error handling for guess number