changed to one-d board array