implemented computer guessing