make unfinished refactorings work localy

made image locations in functions.cpp dynamic and created GLuint
Textures in game.cpp