Made the gutter width a function of the playing area width, and tweaked the math a little bit. I also parse the floats into ints to make the lines more smooth. Now the whole board should redraw according to the width of the border, and the dimensions of the playing area.