Already works, only needs a change into the warning variable which is managed by the PriorityQueue2Way