 	if !Geoloc.isSubscribed()
 		Geoloc.subscribe()
 		# gamestate check
-	limitToBounds()
 	Obs.observe ->
 		mainElement = document.getElementsByTagName("main")[0]
 		mainElement.setAttribute 'id', 'main'
 
-		hey = redraw.get();
+		redraw.get();
+		limitToBounds()
 		gameState = Db.shared.get('gameState')
 		if gameState is 0 # Setting up game by user that added plugin
 			setupContent()

				log 'Rendered location on the map'
				location = location.split(',')
				if mapReady()
					latLngObj= L.latLng(location[0], location[1])
					marker = L.marker(latLngObj)
					marker.bindPopup("Hier ben ik nu!" + "<br> accuracy: " + state.get('accuracy'))

Form = require 'form'

window.redraw = Obs.create(0)
window.indicationArrowRedraw = Obs.create(0);

# ========== Events ==========
exports.render = ->
