classic snake game written in C + ncurses library