add sprite client and server code