extract Player struct to player.rs