refactored code to split togglePlayer method, and added winning line variable to highlight winning row