dont pause game if unfocused
 fix scope issue