Rewritten friend system
Fixed friend type issue