added function to create board array, some code cleanup & tweaks. This one works. :-)