complete greedy snake