private void drawGrid(Graphics2D g) {
		for (int i = 0; i < 9; i++) {
			for (FieldSlot s : field.areas.get(i)) {
				int x = s.getX();
				int y = s.getY();
				g.setColor(new Color((200 + 25 * i) % 255, (120 * i) % 255,
						90 * i % 255));
				g.fillRect(x * width / 9, y * height / 9, width / 9 + 1,
						height / 9 + 1);
				g.setColor(Color.BLACK);
			}
		}

		for (int x = 0; x < 9; x++) {
			for (int y = 0; y < 9; y++) {
				int xPos = (int) ((float) width / 9 * (x) + (float) width / 32);
				int yPos = (int) ((float) height / 9 * (y + 1) - (float) height / 64);
				g.drawChars(field.getSlotChar(x, y), 0, 1, xPos, yPos);
			}
		}
		for (int i = 0; i < 8; i++) {
			int lineHeight = (int) ((float) height / 9 * (i + 1));
			int linePos = (int) ((float) width / 9 * (i + 1));
			g.drawLine(0, lineHeight, width, lineHeight);
			g.drawLine(linePos, 0, linePos, height);
		}
	}