         $http.get serverUrl + "/api/points"
         .success (data) ->
             $rootScope.points = data
+            cathedraleEnergy = 0
+            cathedrale = null
             $rootScope.points.forEach (point) ->
                 $http.get serverUrl + "/api/points/"+ point.id
                 .success (data) ->
                     point.coordinates = { latitude: point.lat, longitude: point.lng }
+                    point.data = data
                     if data.type == 'cathedrale'
+                        cathedrale = point
                         point.options = {
-                            labelContent: Math.abs(data.energy) || '0'
+                            labelContent: cathedraleEnergy || 0
                             labelClass: 'map-label-cathedrale'
                         }
                     else

                $rootScope.teamScore = teamScore
                $rootScope.$apply()

            $rootScope.socket.on 'point:update', (data) ->
                point = p for p in $scope.points when p.id == data.point.id
                if point
                    point.options.labelContent = Math.abs(data.gamePoint.energy) || '0'
                    point.data = data.gamePoint

            $rootScope.socket.on 'user:update', (data) ->
                console.log data
                if data.energy then $rootScope.energy = data.energy
                $rootScope.$apply()
]

                            labelContent: Math.abs(data.energy) || '0'
                            labelClass: 'map-label side-' + data.side
                        }
                        if cathedrale
                            cathedrale.options.labelContent += data.energy
                        else
                            cathedraleEnergy += data.energy
                    point.icon =
                        path: ''

        initGame = ->
            $rootScope.checkUserOrReconnect()
