The goal is simple : Just find the best path between the start & end points that allows you to collect the required items on your way & avoid hitting the obstacles or collecting non-required items.