finished guess implementation