Shrawan : 7 August 2014 : Refactored code for winning condition match