Working adding players function