collsision detection for terraingrid