By making Gaza a centrepiece of its foreign policy and even more by openly sympathising with Hamas , which runs Gaza , Turkey has gained new friends in the Arab world but alienated allies in the West .