In view of another thread here, your corn snake's age had me wondering. I asked and Google answered. Turns out it's been asked before:
Do older snakes get dementia?? Posts #16 & #17 mention corn snakes. Nothing definitive though. The last post has the best guess.