CALGARY , Alberta -- Alex Tanguay scored the tying and go-ahead goals , and the Calgary Flames beat Minnesota 5-3 on Wednesday night , handing the Wild their first regulation loss in nine games this season .