 	canvas.width = canvasEdgeX
 	canvas.height = canvasEdgeY
 
+############################################################
 # game loop control
-
-# loopId = => setInterval (
-# 	gameLoop
-# ), INTERVAL 
-# Can't seem to get a handle to clearInterval with using CoffeeScript
 
 startLoop = () -> 
 	console.log("startLoop runs")

		levelOver = true if gameLoopCounter >= 3
		endGame() if levelOver == true

# frame drawing functions 
draw = () ->
	console.log("draw runs")


# create menu on jQuery document ready 
jQuery -> 
	setSizes()
	addMenus()









# view menu

# on menu click 
# run chapter 
# hide menus

# to run chapter... 
# create canvas
# create containers 
# create starting UI 
# run game loop 
# do things 
# end game loop
# add menus 




	startLoop() if levelOver == false #prevents duplicate loops
	levelOver = false
	currentLevel = levelName

############################################################	
#game levels

gameLoop = () -> 
