Modified the createBoardArray() method in hte KnightsTour class to utilize a single-dimensional array instead of a two-dimensional array.