It's within the game mechanics so of course it's legal
Well - let's be fair - it is possible that someone was able to find a way around the system and can do things that the developers didn't want or intend. That would be within the game mechanics, but it would also be cheating.