ProccessGuess fixed bug plus some refactorings