what should i do

My friend told me that my guy friend that been friends with for two year almost three years(not anymore)was just using me and playing with me like if ow as a toy to him he  did that And left and  now he has a gf