made some minor tweaks to the code, including allowing users to specify graphical board dimension (in pixels)