@Test
	public void testPathFinding(){
		getNewBoard();
		
		// test path to room
		List<Square> path = board.getBestPathTo(p3, spa);
		if (path.size() != 9){
			fail("path size should be 9: " + path.size());
		}
		
		
		// test path is empty if blocked
		board.setPlayerPosition(p1, spaEntrance);
		path = board.getBestPathTo(p2, spa);
		if (path.size() != 0){
			fail("path size should be zero: " + path.size());
		}
		
		// test path to same square is length 1
		path = board.getBestPathTo(p1, spaEntrance);
		if (path.size() != 1){
			fail("path size should be 1: " + path.size());
		}
				
		// test path from entrance to room is length 2
		path = board.getBestPathTo(p1, spa);
		if (path.size() != 2){
			fail("path size should be 2: " + path.size());
		}
		
		// test path from room to entrance is length 2
		board.setPlayerPosition(p1, spa);
		path = board.getBestPathTo(p1, spaEntrance);
		if (path.size() != 2){
			fail("path size should be 2: " + path.size());
		}
		
		// test path from room to room is right length
		path = board.getBestPathTo(p1, theatre);
		if (path.size() != 10){
			board.drawPath(path);
			fail("path size should be 10: " + path.size());

		}
		
		// test paths from different entrances
		board.setPlayerPosition(p1, swimmingPool);
		
		path = board.getBestPathTo(p1, patio);
		if (path.size() != 6){
			board.drawPath(path);
			fail("path size should be 6: " + path.size());

		}
		
		path = board.getBestPathTo(p1, theatre);
		if (path.size() != 9){
			board.drawPath(path);
			fail("path size should be 9: " + path.size());

		}
		
		
	}