Created a test for function getPartOfWinnigLine