In this video I briefly describe how I kept my code organized and maintainable when creating Tetris in c with SDL2 source code: https://github.com/A-Larsen/tetris