Judge dismisses lawsuit over wayward golf balls