Public good games with incentives: The role of reputation