Game doesn't update when mouse leaves screen