public void write(int x, int y, String text) {
		final char[] chars = text.toCharArray();
		int posX;
		int posY;

		for (int iteration = 0; iteration < chars.length; iteration++) {
			posY = y + iteration / width;
			posX = x + iteration % width;

			if (posX < width && posY < height) {
				buffer[posX][posY] = new ScreenCharacter(chars[iteration]);
			}

		}
	}