Added condition to restrict players other than main player to refrain from using ajax calls