Minor refactoring / condensed with macros

Condensed a lot of code with macros. Added Player protected functions
loader inside lib_sb_inherit_player (gonna need to capitalize the 'p' in
that in the next commit. It's building right now)