func NewPlayer(nick string, profile Profile) (*Player, error) {
	p := new(Player)
	newUUID, err := uuid.V4()
	if err != nil {
		// FIXME: Handle error
	}
	p.UUID = newUUID
	p.Nick = nick
	p.Profile = profile
	err = storage.Store(p)
	if err != nil {
		return nil, errors.New(err.Error() + " - Could not write player to storage")
	}
	return p, nil
}
func NewPlayer(nick string, profile Profile) (*Player, error) {
	p := new(Player)
	newUUID, err := uuid.V4()
	if err != nil {
		
	}
	p.UUID = newUUID
	p.Nick = nick
	p.Profile = profile
	err = storage.Store(p)
	if err != nil {
		return nil, errors.New(err.Error() + " - Could not write player to storage")
	}
	return p, nil
}
func NewPlayer ( nick string , profile Profile ) ( * Player , error ) { p := new ( Player ) newUUID , err := uuid . V4 ( ) if err != nil { // FIXME: Handle error } p . UUID = newUUID p . Nick = nick p . Profile = profile err = storage . Store ( p ) if err != nil { return nil , errors . New ( err . Error ( ) + " " ) } return p , nil }
//
// Player related functions and methods
//
// Create a player
Player related functions and methods Create a player