the reason for the infinite loop was because I made the conditions that were not implemented in statechanger not do anything. Now the unimplemented conditions make it so p1 loses. This terminates quickly. The bulk of the runtime now is pickling the object db (which will create a file db.pkl when you run ultimaterps.py. I now think it will work once the rest of the conditions are implemented in statechanger.