changed the board[] array to a two dimensional array