Refactor to remove procedural code from Game#guess