AI Software Reveals the Inner Workings of Short-term Memory