Changes dimensions from constant ints to #defines, implemented neighbor structure in map nodes