added game loops cleaned up some debug statements