began work on main loop.  fixed gravity.  Note than since a std::vector's type must be known at compile time, the program will have to be executed inside the switch/case block.  Thus we may want to write an external function to do the main loop.