move sprite.cpp to src