Moodle Forums can be set up to use group functionality in your course . This allows you to place students in predetermined groups in the course and then have those group members only interact with each other.
Video Overview
Creating Student Groups in a Moodle Course
Adding a Discussion Forum
Activating Groups in a Forum