Pavel Zacha fired home the game-winner in the dying minutes of the third and David Pastrnak and Charlie McAvoy added two points each as the Boston Bruins edged the Florida Panthers 4-3 in a battle for top spot in the Atlantic Division.