Add player position function for views

This could be redundant of the player position function.
I'll consider removing it.