Tetris in ncurses