Yeah,i meant to ask what its use is for your code.I am new to the whole PriorityQueue thing and i am trying to understand what the following actually does."((Object o1, Object o2) -> { Cell c1 = (Cell)o1; Cell c2 = (Cell)o2;