a simple snake game in linux with c