added debug_text class/wrapper
adapted game