Updated checkWin and made methods static