they had planned to turn her into a double agent for black swan by implanting a device in her brain that would rearrange a few million of her neurons , turning her into a virtual slave of the organization .