created player details class

will break if the attributes are moved, fix this