Fixed compile errors in test class, added a test for whoWon and wrote logic in whoWon