Swinging hammer