Created variables to prevent players from getting the guards intentionally stuck to a wall.