Magic swap puzzle