Refactors method that handles AIs turn