Dd1 goes through phases of it, she is 3.5 now, we can finally reason with her - no playing outside if you sook etc but with a 2.5 yo they don't understand it. Try ignoring it and only respond to the good behaviour, so the bad stuff isn't rewarded.