Refactors out NIM Algorithms from Nim Game class