Nim is a classic math strategy game where players remove matches from 3 piles of matches. On each turn, you can remove as many matches as you'd like from one pile. The player who removes the last match wins.