Add getPlayerIconByPath to playerFactory