A Shooting Star

Two buddies trying to collect gems and avoiding blocking the way back while doing so.
Puzzle