player drawing function