moved flip_up command to outside Astack class