Decoding the House Edge: How Games Are Designed