editted code from comments by sir Roger
Invalidate timer before Game Over