Wiktionary
take one's ball and go home
vb. (context idiomatic English) To cease participating in an activity that has turned to one's disadvantage, especially out of spite, or in a way that prevents others from participating as well.