How to Build a Mind: Toward Machines with Imagination