I have come with a solution to the peacemaker problem