huge update! code reorganization

separated all of my code into headers and corresponding source files.
moved main function from 2dworld.cpp to main.cpp