added centered x method in player