Add parseInt for grid size.