Refactoring : use an enum for Player (instead of a class).