Hamas motives - i accidentally found article about madmans who started uprising in 1863 Poland occupied by Russia.
Sure,prussians helped them for their own reasons,but dudes who started it did it becouse they belived,that after Russia win murdering poles,nobody would want made any deals with them.
Basically,made and lost uprising so poles and russians would be enemies for eternity.
The same is with Hamas - they knew that they lost,they knew that jews would massacre them after they lost,but - thanks to that there would be no peace there.
And,becouse they have more babies,they would win in 50-100 years.
That is their motive,i think.