arriving in front of william , who was perched on a box in order to avoid being trampled or pushed into the water by the crowd , the lieutenant saluted but was rudely jostled by several people attempting to gain william 's attention and ended with his wig pushed over his eyes .