Snake using ncurses