snake game, using ncurses