Friendly Game Detection

Ongoing work on #200 , not ready to be merged yet.