simplified logic
replace stdin with injected dependency so Game is testable