guess logic