Formatting code
Refactoring code to remove duplicate condition
Add 4th test case :: playerB win in first ball