changed the resolver to use use a proper queue instead of a LinkedList