How to Build a Brain: A Neural Architecture for Biological Cognition