def get_1d_pos(position, shape=[[0, 27], [0, 27]]):
	"""
	Convert a 2D representation to 1D.
	
	@param position: The 2D position (sequence).
	
	@param shape: The shape of the region.
	"""
	
	return position[1] + position[0] * (shape[1][1] - shape[1][0] + 1)