adding addPlayer & removePlayer functions