Complete simple guessing algorithm