Massive rework, made everything into modules, table data is no longer 3d array, but single array of cell type each with an x and y id. Upgrade to makefile to accompany the modulization. Placed everything into src.