developing a billiards simulation for the W5D