I know mining bitcoin involve solving puzzles/logarithms. What purpose does it serve to solve a puzzle, who want what to be solve and to what end? Who am I solving that puzzle for and why? I know I get coins when I solve a puzzle but how does solving a puzzle benefit anyone?