Final turn-in

Crashes after several turns due to memory leaks.