Detecting ball moving between IR pair and handling ambient light changes
Your idea is perfectly sound, and assuming nothing goes wrong should work very well.

Another possibility is a narrowband filter at 940 nm, which will filter out most stray light. At this time, eBay has such a filter, about the right size, for less than $20.