New grid generation and iteratations. Improved printing.
Fix logic. Working version.