public void paintComponent(Graphics g) {
		int width = getWidth();
		int height = getHeight();

		g.setColor(getBackground());
		g.fillRect(0, 0, width, height);
		g.setColor(getForeground());
		
		int xOffset = width / 2;
		int yOffset = height / 2;
		int xOnCanvas;
		int yOnCanvas;
		Position position;
		for (Cell cell : renderedGeneration.getCells()) {
			position = cell.getPosition();
			xOnCanvas = position.xCoord() * 2 + xOffset;
			yOnCanvas = position.yCoord() * 2 + yOffset;
			if (xOnCanvas >= 0 && yOnCanvas < width && yOnCanvas >= 0
					&& yOnCanvas < height)
				g.fillRect(xOnCanvas, yOnCanvas, 2, 2);
		}
	}