Added adjacent mine code