Added render function that correctly renders the given board