Game Theory based Resource Identification Scheme for Wireless Sensor Networks