center the position of player and basket