Simple tetris game in C