Replace factories with global factory pattern
Merge #74
Permission via https://github.com/cpluspluscom/ChessPlusPlus/pull/65#issuecomment-31437139