adding players name function