Update Nim.cs and Grid.cs