public void validTeleporterGridFactoryTest(Grid grid) {
		TeleporterGridFactory teleporterGridFactory = new TeleporterGridFactory(
				grid, new BasicStaticTestGridFactory());
		teleporterGridFactory.generate();
		int n = 0;
		for (Element element : grid.getElementsOnGrid()) {
			if (element instanceof Teleporter) {
				n++;
				for (Element elementOnPosition : grid
						.getElementsOnPosition(element.getPosition())) {
					// Teleporter can't be on an element that isn't hoverable
					// eg. Wall
					assertTrue(!(elementOnPosition instanceof Wall || elementOnPosition instanceof Player));

					// Can only be 1 Teleporter on a square
					if (elementOnPosition instanceof Teleporter)
						assertEquals(element, elementOnPosition);
				}
			}
		}
		// max 3% can be Teleporters
		assertTrue((n / grid.gridSize() * 100) <= 3);
	}