computer guess logic