A model for neuronal competition during development