Constant roaming combined with failure to eat = something is wrong with the habitat.

The snake is trying to escape to a more desirable location. It is not happy where it is right now, and doesn't feel comfortable, so it's trying to move.