Fixed guess evaluation bug. Refactored code structure.