Modified Code (increased Grid Size)