Puzzletober 2026: Ram

 They reach a dead end. Renn asks Felix, "Are you certain this cave continues?" Felix says nothing. Renn hits another insect. It's the last one this deep. For a moment, there's complete silence. But then Renn says, "I hear something. A crackling beyond this wall." He feels the rough surface of the stone beside him. He decides to ram into it and successfully shoves it back. Fickle beams of light attempt to make their way into the corridor between the boulders through the newly exposed room from some chamber farther ahead. A ray is reflected in Felix's eyes. He's relieved.

Rules: Find a path from left to right, which cannot move diagonally or revisit any tiles. Energy starts at zero. Moving across multiple tiles in the same direction builds up energy by 1 unit per time the path goes in the same direction without colliding with a wall. By continuing in that same direction into a wall, energy is lost by 1 unit per wall that's pushed in a row. Energy automatically becomes 1 after the path takes a turn. Energy must never go negative.

penpa link (has answer check)