added most logic for 2dimensional analysis of winning conditions but need to debud because additional tables are throwing it off and getting an undefined reference at some point