SMS: Behavioral mathematics for game AI