checkIfSurrounded in rules