fun reference trick to pass around length (combine UI getting players into one function