Copy from Bean_2048