Coding the player's components and transform