Update wallsInPath to accept any number of players