A General Theory of Competition