Added white background to the Grid
Implemented the algorithm with iterations