Cleaning up repeated code.
Merge pull request #3 from xaevinx/refactor/player_identity

Cleaning up repeated code