when was billiards invented