The code used is in the following files:
lcd_final.h //contains all header files (28kb) --680 lines
pool_final.c //the whole game (50kb) --1400 lines