added an untested function to check if a ball is blocking the path