started implementing a better guessing algorithm