Thank you, this solution worked! It is a little more overhead than I was hoping for (ultimately I'm going to use the material in this simplistic game as an intro to Nim for other programmers) but this does exactly what I wanted.
Thanks again for your help, Stevo
