How did Rome respond to their successive losses against the Macedonians?