The AI snake object's coordinate has stored in an ArrayList. Original, after the snake first dies, the length would set be 3, but the remaining value stored in the ArrayList has not been clean. So when it starts again, it would be very fast to meet the original code, then die. So just initial the coordinate again is OK.
Created attachment 101 [details] Related code to init coordinate