They are probably competing for warmth. You shouldn't be housing two snakes in the same enclosure unless for breeding purposes. They are solitary animals and will stress if they are in a confined space with one another. House them separately and they'll be much better off.