Added code to render the board