Could you please clarify what you mean by "Hamas wanted in ghe first place"? If I'm not mistaken, you're referring to the attack on the 7th of October, right? May I perhaps add that just on the days preceding that attack, Israelis killed a Palestinian in the West Bank[0]. So it was not really peaceful before that specific date.
[0] https://www.reuters.com/world/middle-east/palestinian-killed...