Refactoring: Replaced player symbol literals (magic characters) with the corresponding constant variables.