added the part where he doesn't capture the same mine twice