Added synchronisation in board.addLine and the renderer to prevent concurrency
problems when logic controller adds lines.