 			return element
 		}
 	}
-	
+
 	func update(state: CellState, x: Int, y: Int) -> Cell {
 		let cell = m[x, y]
 		cell.state = state

		group.wait()

		activeCells.removeAll()
		
		for cell in dyingCells {
			cell.state = .dead
			
			if !cell.active {
				cell.active = true
				activeCells.append(cell)
			}
			
			for nCell in cell.neighbours {
				if !nCell.active {
					nCell.active = true

				}
			}
		}

		for cell in bornCells {
			cell.state = .alive

			if !cell.active {
				cell.active = true
				activeCells.append(cell)
			}

			for nCell in cell.neighbours {
				if !nCell.active {
					nCell.active = true
