private void paintBoard(PaintEvent event) {
            for (int xCoordinate = 0; xCoordinate < game.getBoardWidth(); xCoordinate++) {
                for (int yCoordinate = 0; yCoordinate < game.getBoardHeight(); yCoordinate++) {
                    paintCell(event, xCoordinate, yCoordinate);
                }
            }
        }