a researcher in neuro-robotics discovered that a handful of neurons , collected from the cortex of lab rats and grown in a culture medium , could be wired into a small wheeled robot , and through electrode stimulation , it could control and operate the tiny vehicle , learning over time as new synapses formed to avoid objects and work through mazes .