rewrite game - still need to check winning state