Simplified neighbourhood check. Added - but not working or using - ray tracing