How to make barriers when only one player is left in an area

guide link: