The solar system on a billiards table