Bug fix: flickering of game surface