@Test
	public void testPlayerCapturesFlagAndIsReturnedToStartingPosition() throws InvalidActionException {
		factory.setPlayerOneFlagOneSquareUp();
		
		PlayerFlag pf1 = null;
		for (Element e : grid.getElementsOnGrid()) {
			if (e instanceof PlayerFlag) {
				PlayerFlag pf = (PlayerFlag) e;
				if (pf.getPlayerInfo().equals(game.getActivePlayerInfo())) {
					pf1 = pf;
					break;
				}
			}
		}

		game.moveAction(Direction.UP);
		game.pickUpAction(0);

		assertTrue(containsElement(game.getElementsOnPosition(new Position(0, 9)), pf1));
	}