I think they are doing these things, not because they are winning, but because they are losing and desperate.
These assholes can't run a country for any length of time. They know they are screwed if they carry on as things are going. The territory they control is already falling apart - they can't provide essential services that a population expects and eventually they will turn on them. This is to distract people from the reality of their situation and to try and focus attention away from them.
The only thing these people know how to do is screw stuff up and blow it to pieces. They take civilization and turn it into rubble. Eventually they will bury themselves under it.
That is the lesson of history.
For those of you saying Islam isn't to blame ...
Quoting scriptures from the Quran is as meaningless as quoting scriptures from the Bible - it's all BS. People follow the ideology which is fascist.
The reason that Islam is to blame is because 100% of their recruits come from Islam and the 'regular' beliefs being taught in mosques is the fertile ground they need to plant their insanity.
Islam needs to grow up and stop being such a religion of whiny losers so it isn't so easily used to inspire the brutality that has such a widespread appeal to those within it's ranks.