Factions and colors

Factions and colors implemented.