Moved achievement update callback from main into achievement file.