Added a complete check for game win on both x and o and a tie check