Kobe pours in 40 points to down Nuggets