Added a collectable example and added a thread to sleep after rendering to reduce lag