Correct Sprite.java compilation errors