made tests line up and refactored some meaty meaty AI methods to make everything drier