A rewrite of Coin Collector.