Game-Based Coding