move player drawing code into player