game updates and drawing only happens if pages are not being displayed