Completed methods to check if player wins for jQuery tic tac toc