Finding Optimal Solutions to the Twenty-Four Puzzle