change variable name grid to board