Cleaned a bit, tested a 11x11 grid.