function [out1] = twoplayersgeneralgamevectorfield(t,s)
%
%
global A1 A2 W1 W2
ss=size(A1);
x=s(1:ss(1),1);
y=s((ss(1)+1):(sum(ss)),1);
x(end)=1-sum(x(1:end-1));
y(end)=1-sum(y(1:end-1));
phi1=W1.*(A1*y-x'*A1*y).*((A1*y-x'*A1*y)>0);
phi2=W2.*(A2'*x-x'*A2*y).*((A2'*x-x'*A2*y)>0);
rhside=[phi1-x*sum(phi1);phi2-y*sum(phi2)];
out1=rhside;