winning row and game termination done