Moved ai state from player to ai module