Where does “당구(撞球)” come from?

Words derived from “당구(撞球)