Added updateGrid() to Command class