how do the puzzles work


It depends. It is always something favorable for you. Either the gain of material or a checkmate. From time to time it can be even forcing a draw by perpetual in seemingly lost position (but those are rare). In order for you to get it right, the opposition can't have some resource that defends successfully.