refactoring code and add more players.