Refactor player graphics logic.

Moved the player graphics logic to the player class.