Dreaming mechanism for training bio-inspired driving agents