Collect all the gems while avoiding spikes.