How IPL works