A jigsaw puzzle contains 50 pieces. If joining any two pieces or groups is considered one move, what is the least amount of moves to join all 50 pieces?