got the 2D grid to work in main method