 						log 'Capture of beacon ', beacon.key(), ' stopped, left the area'
 
 # Update the takeover percentage of a beacon depening on current action and the passed time
-updateBeaconPercentage = (beacon) !->
+updateBeaconPercentage = (beacon) ->
 	currentPercentage = beacon.peek 'percentage'
 	action = beacon.peek 'action'
 	actionStarted = beacon.peek 'actionStarted'

exports.endGame = !->
	log "The game ended!"

# ========== Functions ==========
# Get a string of the players that are inRange of a beacon
getInrangePlayers = (beacon) ->
	playersStr = undefined

		beacon.set 'percentage', newPercentage



#==================== Functions called by timers ====================
# Called by the beacon capture timer
exports.onCapture = (args) ->
	beacon = Db.shared.ref 'game', 'beacons', args.beacon
	nextOwner = beacon.peek('nextOwner')
	log 'Team ', nextOwner, ' has captured beacon ', beacon.key(), ', players: ', args.players
