Hamas ready to throw in the towel