Greedy Snake in linux console