AVALANCHE: Implement Nim::playNim().

Repair naming of variables in Nim and add some helper functions.