updated makefile, fixed cell class, added terrain class