I think they don't have any relation
The monkey from the mountain went to play at the village...
or something like that
へ indicates the destination of 遊びに行った.
方 has a nuance that the direction is vague, thus, unlike 里へ , 里の方へ loosely refers to the direction to 里.