Two Pointer Algorithm Javascript Snake Patorjk