Game-over checking.