Mark Cuban called it the "worst officiated game," and his team won.