work for deffrent number of players