detects when players are inside a wall