 
 # Main function {{{
 $ ->
-	game = new Game(["demo1", "demo2"])
+	game = new Game(["demo1"])
 	console.log(game)
 	$("[type=button]").prop("disabled", true)
 	$("#start_game").prop("disabled", false)
 
 	$("#start_game").click ->
+		startGameUI()
 		game.startGame()
 
 # }}}

		diagram.active_points = []
		setTimeout updateSidebar, 400
	else
		markAllActive("red")
		tempAddClass "#check_button", "button_red"
		updateSidebar()

onClearButtonClick = (e) ->
	diagram.active_points = []
	updateSidebar()

onDoneButtonClick = (e) ->
	if diagram.allFound()
		tempAddClass "#done_button", "button_green"
		game.processCorrectDone()
		sidebarClearForNextDiagram()
	else
		tempAddClass "#done_button", "button_red"
		game.processIncorrectDone()
	updateSidebar()

onStopButtonClick = (e) ->
	if (confirm("Are you sure you want to give up?"))

# High-level things
markAllActive = (c = "blue") ->
	clearAll()
	ap = game.currDiagram().active_points

	# Mark all selected points
	for p in ap
