private void paintCell(PaintEvent event, int xCoordinate, int yCoordinate) {
            if (game.cellAlive(xCoordinate, yCoordinate)) {
                event.gc.fillRectangle(xCoordinate * cellSize, yCoordinate * cellSize, cellSize, cellSize);
            }
        }