A billiards game using three.js