time detection moved from application to game