centralized the player sprite allocation