Finished the greedy ai