A localization game in wireless sensor networks