a Snake game using linux curses libary