Create an outline of the screen that does not interfere with my main collision listener.

I want the player to be able to stay within the game.

I have a collision event that makes one object interact with the other.

I want to be able to create walls that contain the player within the game without intervening with the collision listener. If anyone can shed some light that would be great. Tutorial link or anything. thanks!