Player structure functions

first commit