public void moveRight() {
		if(!win && !m.getMap(p.getTileX() + 1, p.getTileY()).matches(pattern) && p.getTileX() != Maze.gridSize-1) {
			if(xOffset < Maze.gridSize - 20 && p.getTileX() == xOffset + 10) {
				Board.xOffset++;
				p.move(1, 0);
			} else {
				p.move(1, 0);
			}
		}
	}