update the move and grid class