added invokeLater to create the board panel later