There's no E in the grid. The E appears to be the exit condition, without which the program will search infinitely and use infinite memory.