Added playergroup class

PlayerGroup is a wrapper class for a group of players. This allows all
active players to be processed with less code everywhere in the main
loop.