Added centerOfPlayer function to Utility class