Moving sprites with C-language