working find burger algorithem