package the function to active a player' area