made moves comparable, worked on AB algo