ported reinforcement learning to PlayerKyle; created a handy StoppingCriteria class too