 	log 'Team ', neutralizer, ' has neutralized beacon ', beacon.key(), ', players: ', args.players
 	beacon.set 'percentage', 0
 	beacon.set 'owner', -1
+	
+	#cancel gain teamscore overtime
+	Timer.cancel 'overtimeScore', {beacon: beacon.key()}
 
 	# Increment neutralizes per team and per capturer
 	for player in args.players.split(', ')

	beacon.set 'actionStarted', new Date()/1000
	# Set timer for capturing
	Timer.set (100-percentage)*10*30, 'onCapture', args

#Function called when the game ends
exports.endGame = !->

	Db.shared.iterate 'game', 'beacons', (beacon) ->
		Timer.cancel 'onCapture', {beacon: beacon.key(), players: getInrangePlayers(beacon.key())}
		Timer.cancel 'onNeutralize', {beacon: beacon.key(), players: getInrangePlayers(beacon.key())}
		Timer.cancel 'overtimeScore', {beacon: beacon.key()}
	# Reset database to defaults
	Db.shared.set 'gameState', 0
	Db.shared.modify 'gameNumber', (v) -> (0||v)+1
