Describe the strategy for winning the game of Nim. The rules are simple. Start with any number of counters in any number of piles. Two players take turns to remove any number of counters from a single pile. The loser is the player who takes the last counter.

Try out your strategy by playing against the computer (although in this version, the winner takes the last counter).