Curry scored 31 points in the game and Golden State won its sixth consecutive game and second in as many nights