added function to remove player and cleanup last player field