event loop working in coffeescript
API for timer and graphics stubbed out