Playerpositions

Added code for calculating playerpositions.