On mobile sorry for formatting 

So the story goes as follows 
Me:yours truly   friend 1:F1    friend 2 :F2 Friendly Girl :FG MR. teacher: MR.G

Im a high school student and my 1st periods is a study hall with a couple of friends in here. So we start joking around about anime and 

FG joins in an says” oh i can say hi how are u in Chinese”  

I responded with the only Chinese i know “ says hi in Chinese” 

F1 and F2 and me start saying hi in chinese with a accent 
F1 then says something that sounds like chinese in a regular voice (his regular voice has a spanish accent)

Mr.G comes and says we are all Racists and that what we are saying is racism and is pushing a stereotype. 

We start arguing in what is racist and why we are/arent 

Now am i the asshole for thinking that making a joke that while insensitive doesn’t make u racist