prevent endless loop on to much mines