Invalid mines configuration: Width and height at least 2 and at most 5 each. There must at least 2 mines and at least one field without a mine!
Also at least ${minRatio}% of the fields need to be mines.