(Hopefully) fixed the ai.eval function