Add main loop, glass and basic draw function