game: Refactor loading text files

Define func game_load_text_file in new file game_util.h.
game: Fix the build

Oops. I broke a lot of stuff.