replaced hardcoded coords with dynamic check for horizontal/vertical checks
extracted WinnerRules, dynamic check for diagonal sequences