Thanks; does this fix it? https://github.com/dvelton/ai-pixel/commit/ba04e1c649e0ec99b...

Tried again and no. To reproduce create a corridor e.g.

    X    O
    
     X     O

      X   O
       X     O

       X   O
Line can get jammed in non vertical positon.

Increased default epochs to 2000 instead of 500, I think that fixed it but let me know if you still run into this.