Add Simulation Loop Code

mostly added code from slide 17 in the lecture handouts... Still needs
more work, but is outputting results that look kinda-sorta right...