Using virtual game environments to study group behaviour