used Math.floor to round out grid size calculation to get a whole number