added more to node class and added code to print the grid, though it doesnt work yet