Text this: Linking Game-Theoretical Approaches with Constructive Type Theory