use recurrence method to solve the nim game of two piles stone