Gamification techniques for rule management in ambient intelligence