Social gaming or social gambling is not illegal because there is no money involved. It will only consider gambling when you are staking real money. At the same time, you win real money or the equivalent of it. When you are playing in a fun casino, you can't win a cash prize of any value. In short, you are only gambling for fun.