solution to grid