Complete showBoard() function