refactoring but game.winner still not working