Israel and Hamas came to a settlement on Tuesday to end fights in exchange release of prisoners and hostages.