Capitals win a thriller against Tampa Bay