week 4: 8-puzzle