we've all seen it - the referee blows a call; doesn't see a foul or calls the wrong foul; or any other number of scenarios.
the solution i propose probably would not eliminate 100% of bad calls, but at least it would give referees more data.
why not have every player wear 5 or so sensors on their bodies: wrists, ankles, neck. maybe there are other spots to place the sensors. these sensors can then detect fouls and where feet are placed, etc.
not only would this help with refereeing the game, but analysts and coaches could collect massive amounts of data - especially for more dynamic sports such as soccer and basketball and even hockey.