Optimal Play: Mathematical Studies of Games and Gambling