public void printPuzzle() { String top = ""; String bottom = ""; for (int i = 0; i < GRIDSIZE; i++) { top += "---"; bottom += "___"; } for (int x = 0; x < GRIDSIZE; x++) { String container = ""; System.out.println(top); for (int y = 0; y < GRIDSIZE; y++) { container = ("| " + grid[x][y] + " |"); System.out.println(container); } System.out.println(bottom); } }