break out getting the player and the file extension into their own functions