Refactored game flow class