ANY advice would help. Even if you just say "It's im/possible"

I have a basketball league with 500 teams to schedule every year, and would love a program that would alleviate that 2-week headache. If you know of any programs that can do this, or if you are willing/able to construct a program that can do this, or if you have any advice on how I can do this myself, please let me know.

For a visual and interactive explanation, I've constructed the following so you can understand EXACTLY what I'm looking for:

What I want the program to look like: (the html can be viewed at or an html editor of your choice.

And here's the schedule I would like the program to populate:

If you or someone you know can do this, we are willing to pay. Thanks for your time.

You are correct. Thank you.