changed rendering

changed rendering from immediate mode to using vertex buffer objects.
also got rid of the textures as they were not working properly