Debugging reset of grid and cursor state. Done