Shake function of getting the location of the user