add players functionality