 		# End game and activate end game screen
 		Db.shared.set 'gameState', 2
 		log "[endGame()] The game ended! gameState: " + Db.shared.peek('gameState') + " args: " + args + " winningTeam: " + winningTeam + " Db: " + Db.shared.peek('game', 'firstTeam')
-		# Event 
+		# Event
 		addEvent {
 			timestamp: new Date()/1000
 			type: "end"

				owner = beacon.peek 'owner'
				if newStatus
					if not device? # Deal with old clients by denying them to be added to inRange
						log '[checkinLocation()] Denied adding to inRange, no deviceId provided: id=' + client + ', name=' + Plugin.userName(client) 
						return
					if accuracy > beaconRadius
						log '[checkinLocation()] Denied adding to inRange of '+Plugin.userName(client)+' ('+client+'), accuracy too low: '+accuracy+'m'

	teamMax = getFirstTeam()
	newLead = false;
	newLead = teamMax isnt Db.shared.peek('game', 'firstTeam')

	log "[checkNewLead()] newLead: " + newLead + " "

	# create score event
