fix guess logic