Removed some unneeded code

you don't need to make a Player since the function is already getting the player
If you need the code write use player.function