state function now prints a beautiful representation of the board