Adding invasion check