rearranged methods for simpler game tree expansion, added random AI