implement 24 puzzle

24 puzzle