Aaaahhh, good old NIM.
There is actually a winning strategy. No I wont post spoiler links here, but they aren't too hard to find, though you will have to flip some of them as some NIM games define the winner to be the person who takes the last stone/pearl or whatever,whilst other NIM games define that to be the loser.