 Playfield::clearPaths = ->
 	for i in [0...@height]
 		for j in [0...@width]
-			@pathPlane[i][j] = {}
+			@pathPlane[i][j] = new Map
 
 	return
 

		line = []

		for j in [1..width]
			line.push {}

		@pathPlane.push line



Playfield::addPath = (path) ->
	path.list.forEach (entry) ->
		cell = @pathPlane[entry.y][entry.x]
		cell.set path.id, path
		return
	, @
	@
