3 Commit

Implemented the checkWinner(...) function and optmized some code