Fix warnings and use RefCell to hold players.

Signed-off-by: Peter Atashian <retep998@gmail.com>