Fixed bugs in the implementation, Nim is fully playable