Diablo-style loot and stuff

My own implementation of http://www.cis.upenn.edu/~cis110/11fa/hw/hw06/index.html