changed prototype of drawsprite to copy the position