First thing I recommend is to change the code to use a few variables so it's size can be made smaller for testing.
For example:

final int WIDTH = 10; // 75; //every calculation in the grid...