some changes made. finished winning condition

need to add mod paramaters for proper checking of variables