Texture Mapping on Cube
Refactor code