The Golden State Warriors ended their five-game losing streak on Sunday by beating the Boston Celtics.