refactor guess method, working on removing temp variables