fixed greedyai because it was bothering me