 	renderRatio: (x, y, {min, current, max}, suffix = '') ->
 		min ?= 0
 
-		program.move x, y
-		if min is 0
-			program.write "#{current} / #{max}#{suffix}"
-		else
-			program.write "#{min} <= #{current} <= #{max}#{suffix}"
+		str =
+			if min is 0
+				"#{current} / #{max}#{suffix}"
+			else
+				"#{min} <= #{current} <= #{max}#{suffix}"
+
+		@write x, y, str
 
 	renderBar: (x, y, w, {min, current, max}) ->
 		min ?= 0

	write: (x, y, str) ->
		for c,i in str
			@bufferPut x+i, y, c

	bufferToString: ->
		out = ''

			entityLayer[a.type] - entityLayer[b.type]

		@renderEntities x, y, entities
		@renderEffects x, y

	renderEntities: (x, y, entities) ->
		c = @game.camera
