hear a clacking noise not sure what it is front driver side

ok so i was driving when i noticed a sound on the driver side front tire. i didn't think anything of it. when i drive my car pulls to the right side my guess was wheel alignment. but i noticed when I'm driving and hit any type of bump or pot hole my car pulls left or right depending how i hit it. i did some research and heard it could be a ball joint. so i jacked my car up and wiggled the tire side to side and it moves then i tried up and down it didn't move(driver side). i did it to the left side nothing at all stiff as a bolder. so my question is is it the lower ball joint or upper ball joint and does anyone have pics to show the differences. thanks help would be greatly appreciated.

