Add template for player and finalize logic for edit