Turned the AIs into classes, to allow them to keep state between rounds.