Fixed some nasty runtime errors.  Added new method setup() to PlayMode.