adds display board function, and cleans up how the board is displayed
removes unnecessary io variable