change board to 2d array and display output