Two Pointer Algorithm Javascript Snake Patorjks Text