Nim game using recursive algorithm to get best move.