Main sprite functions implemented and tested.