@Override
		public void paintComponent(Graphics g) {
			super.paintComponent(g);
			
			if (screen != null) result = screen.screen;
			
			for (int x = 0; x < cellsX; x++) {
				for (int y = 0; y < cellsY; y++) {
					
					switch (result[x][y]) {
					
					case 0:
						g.setColor(Color.BLACK);
						g.fillRect(x * cellWidth, y * cellHeight, cellWidth, cellHeight);
						break;
						
					case 1:
						g.setColor(Color.WHITE);
						g.fillRect(x * cellWidth, y * cellHeight, cellWidth, cellHeight);
						break;
						
					case 2:
						g.setColor(Color.LIGHT_GRAY);
						g.fillRect(x * cellWidth, y * cellHeight, cellWidth, cellHeight);
						break;
						
					case 3:
						g.setColor(Color.GRAY);
						g.fillRect(x * cellWidth, y * cellHeight, cellWidth, cellHeight);
						break;
						
					case 4:
						g.setColor(Color.DARK_GRAY);
						g.fillRect(x * cellWidth, y * cellHeight, cellWidth, cellHeight);
						break;
					
					}
					
				}
			}
			
		}