added window focus handling, now stops timer calls to functions on
window loss of focus
Added world rendering