public void setPlayer(int x, int y) {
		p.setTileX(x);
		p.setTileY(y);
		
		playerSet = true;
		
		if(Maze.gridSize > 20) {
			if(x > Maze.gridSize - 10) {
				xOffset = Maze.gridSize - 20;
			} else if(x > 10) {
				xOffset = x - 10;
			}
			if(y > Maze.gridSize - 10) {
				yOffset = Maze.gridSize - 20;
			} else if(y > 10) {
				yOffset = y - 10;
			}
			if (firstTimeThrough == true) {
				pStartX = x;
				pStartY = y;
				xOffStart = xOffset;
				yOffStart = yOffset;
				firstTimeThrough = false;
			}
		}
	}