added ball collision