added a clearing function for when a player enters a world