rewritten game, slightly improved style