Adds PlayerLib

Fixes several errors