roaming is a sign of stress, of which there can be many causes. first cause could be your husbandry: how old is the snake? what are you feeding it? what are your temps/humidity and how are you measuring them? are heat sources regulated?
answering these questions can get us on the right track to helping you.