Hamas accepts deal on the table