Magic cube and Smart pattern