Imagining outcomes before deciding, research could explain what's going on in brain