Simple AI Algorithm Implementations