Moved player drawing function into its own module