creates simplistic ai for removing from stacks