Corrected player drawing function.