discard self hits at depths greater than 0

Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>