added logic for player table