TD library. Game framework