Fixed some compiler warnings and added a random identifier to the player.