got a big chunk of problem 4 done

there's prolly a lot of stupid math mistakes -- i'll fix it later.
haven't implemented the speedup/slowdown keypress madness.