changed TerainGenerator functions to return modified grids\nrather than taking the end grid as an input, and editing it in place
this makefile will kill your family