2D Paper Character: Prevent from sliding off ledge

Question, where do the wall and floor tags come from? I have this issue in 3d with static meshes