Revert "Use Thread.yield instead of Thread.sleep"

Thread.yield pegs the CPU, which we don't really need (yet)

This reverts commit df2f430dc0a07e14e6e0649fa0ad134294e7c4be.
Inline loop functions
Event-based rendering