Nim game that uses a recursive algorithm to find the best moves.