Text this: Behavioral mathematics for game AI