implemented 2D board array and print function