Classic snake game - C