A tetris game in terminal using ncurses