Sometimes husbandry issues cause a snake to go off-feed or to refuse food. I agree that the environment you have the snake in (if the snake is young) sounds like it could be causing the snake to experience stress and so he will not eat. Also, you observe your snake as "always looking for a way out". This is often times a signal that your snake is stressed.
Maybe if you post pictures of the enclosure the members of the forum might see something that you may have overlooked while setting it up. Typically with a few fixes here and there, the snake will begin to feel secure and will then turn to feeding behaviors.
Welcome to the forum, by the way
EDIT>>> Here is a link to the Glass Tank Sticky for your reading and learning enjoymenthttp://www.ball-pythons.net/forums/s...ad.php?t=56846