Controlling chaos in discrete neural networks