Yes, basically delusional. Its overheated too much and has lost the sense of touch in its body and thus cannot feel that it is eating itself, and thinks instead it's eating another snake. It will likely notice and regurgitate its tail soon enough.