refactor #guess into multiple methods because of SRP violation