Done some optimizing. Generation is now over 30000x faster when field is full of mines. :D