basic algorithm, still doesnt consider pheromone