all but greedy ai

Signed-off-by: Leonardo Faria <leonardofaria94@gmail.com>