Did window focusing and mouse leaving window stuff. Added stats.