move loadTexture to class Game,clear warnings