Bug in Coding Escape

Hi all,
Please see attached a solution for the water wheel puzzle in The Treasure that should be correct but doesn’t work.